Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:1597078
Created Jan 11, 2012

What would you like to do?
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