Skip to content

Instantly share code, notes, and snippets.

Created January 11, 2012 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1597078 to your computer and use it in GitHub Desktop.
Save anonymous/1597078 to your computer and use it in GitHub Desktop.
root@arpahost:~# ls -la /var/lib/gems/1.8/gems/rails-3.1.3/bin/
total 12
drwxr-xr-x 2 root root 4096 2012-01-11 20:35 .
drwxr-xr-x 3 root root 4096 2012-01-11 20:35 ..
-rwxrwxr-x 1 root root 212 2012-01-11 20:35 rails
root@arpahost:~# cat /var/lib/gems/1.8/gems/rails-3.1.3/bin/rails
#!/usr/bin/env ruby
if File.exists?(File.join(File.expand_path('../..', __FILE__), '.git'))
railties_path = File.expand_path('../../railties/lib', __FILE__)
$:.unshift(railties_path)
end
require "rails/cli"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment