Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 30 lines (24 sloc) 475 Bytes
#!/usr/bin/env ruby
require "rubygems"
require File.dirname(__FILE__) + '/../lib/gemjour'
begin
cmd = ARGV.shift
case cmd
when "serve"
Gemjour.serve(*ARGV)
when "list"
Gemjour.list(*ARGV)
when "diff"
Gemjour.diff(*ARGV)
when "install_diff"
Gemjour.install_diff(*ARGV)
when "install"
Gemjour.install(*ARGV)
else
Gemjour.usage
end
rescue => e
puts "ERROR: running '#{cmd}': #{e.message} (#{e.class})"
puts
Gemjour.usage
end