Created
June 1, 2009 14:26
-
-
Save sarahhodne/121445 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "baguette/command" | |
module Baguette | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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