Skip to content

Instantly share code, notes, and snippets.

@jm
Created April 19, 2012 14:48
Show Gist options
  • Save jm/2421438 to your computer and use it in GitHub Desktop.
Save jm/2421438 to your computer and use it in GitHub Desktop.
Railcar CLI
# Add an app to Railcar list (it'll update in the UI automagically):
railcar add .
railcar app ~/code/myapp
# Launch an app already in the list; this will let us control the app using Railcar and add other features
railcar launch ~/path
railcar launch app_name # You can set the app name/alias in Railcar
# Stop a launched app
railcar stop ~/path
railcar stop app_name
# Initialize a Railcar environment in the current terminal
railcar init 1.9.3
railcar init jruby
# Go to an app from anywhere
railcar cd app_name
# Install a Ruby or brew package
railcar install jruby
railcar install redis
@jm
Copy link
Author

jm commented Apr 19, 2012

It'll probably just have the args fed into a script and manually handled. I am looking at Thor, but I'd prefer that the core app be dependency-less beyond the MacRuby std lib if at all possible... :/

@caleywoods
Copy link

Makes sense, the CLI so far seems simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment