Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 30 lines (24 sloc) 0.475 kb
e7f460b Evan Phoenix 1.0 in first commit, the way it should be.
authored
1 #!/usr/bin/env ruby
2
3 require "rubygems"
f3ee474 Dr Nic Williams using relative requires + load_paths
drnic authored
4 require File.dirname(__FILE__) + '/../lib/gemjour'
e7f460b Evan Phoenix 1.0 in first commit, the way it should be.
authored
5
6 begin
7
8 cmd = ARGV.shift
9
10 case cmd
11 when "serve"
12 Gemjour.serve(*ARGV)
13 when "list"
cc4f640 Dr Nic Williams removed 'show' cmd, instead 'gemjour list <name>'
drnic authored
14 Gemjour.list(*ARGV)
da87793 Dr Nic Williams added 'diff' cmd to show simple diff of which gems are installed; no ver...
drnic authored
15 when "diff"
16 Gemjour.diff(*ARGV)
d6841c1 Dr Nic Williams new cmd 'install_diff' - installs any gem that target has that local gem...
drnic authored
17 when "install_diff"
18 Gemjour.install_diff(*ARGV)
e7f460b Evan Phoenix 1.0 in first commit, the way it should be.
authored
19 when "install"
20 Gemjour.install(*ARGV)
21 else
22 Gemjour.usage
23 end
24
25 rescue => e
26 puts "ERROR: running '#{cmd}': #{e.message} (#{e.class})"
27 puts
28 Gemjour.usage
29 end
Something went wrong with that request. Please try again.