Skip to content

Instantly share code, notes, and snippets.

@sarahhodne
Created June 1, 2009 14:26
Show Gist options
  • Save sarahhodne/121445 to your computer and use it in GitHub Desktop.
Save sarahhodne/121445 to your computer and use it in GitHub Desktop.
require "baguette/command"
module Baguette
end
require "baguette/command/project"
module Baguette
class Command
def initialize(argv)
@argv = argv
@dir = Dir.pwd
end
def run!
case @argv.first.downcase
when "project"
Project.new(@argv[1..-1]).run!
end
end
end
end
mint@mint ~ $ baguette project baguette_proj
/usr/local/lib/ruby/gems/1.9.1/gems/baguette-0.0.0/lib/baguette.rb:1:in `require': no such file to load -- baguette/command (LoadError)
from /usr/local/lib/ruby/gems/1.9.1/gems/baguette-0.0.0/lib/baguette.rb:1:in `<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/baguette-0.0.0/bin/baguette:3:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/baguette-0.0.0/bin/baguette:3:in `<top (required)>'
from /usr/local/bin/baguette:19:in `load'
from /usr/local/bin/baguette:19:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment