Skip to content

Instantly share code, notes, and snippets.

@justinvt
Created March 12, 2009 18:55
Show Gist options
  • Save justinvt/78233 to your computer and use it in GitHub Desktop.
Save justinvt/78233 to your computer and use it in GitHub Desktop.
#!/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