1 2 3 4 5 6 7 8 9
#!/usr/bin/env ruby git_path = File.join(File.expand_path('../../..', __FILE__), '.git') if File.exists?(git_path) railties_path = File.expand_path('../../lib', __FILE__) $:.unshift(railties_path) end require "rails/cli"