Created
March 12, 2009 18:55
-
-
Save justinvt/78233 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
#!/usr/bin/ruby | |
def go_to | |
system "cd $nook" | |
end | |
def edit | |
go_to | |
system "cd ..;mate nooknack" | |
end | |
def login | |
go_to | |
system "cd $nook;rake ec2:ssh" | |
end | |
def console | |
go_to | |
system "cd $nook;ruby script/console" | |
end | |
def server | |
go_to | |
system "cd $nook;ruby script/server" | |
end | |
case ARGV[0] | |
when "e" : edit | |
when "l" : login | |
when "g" : go_to | |
when "c" : console | |
when "s" : server | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment