aboutsummaryrefslogblamecommitdiffstats
path: root/railties/bin/rails
blob: e743aa83f1646f1ab6cb041fbf68fada5568676f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                

                                 
                       



                                        
 

                               

                                                  
 
                                     
begin
  require 'rails/ruby_version_check'
rescue LoadError
  # If people are not using gems, the load path must still
  # be correct.
  # TODO: Remove the begin / rescue block somehow
  $:.unshift File.dirname(__FILE__) + '/../lib'
  $:.unshift File.dirname(__FILE__) + '/../../activesupport/lib'
  retry
end

Signal.trap("INT") { puts; exit }

require 'rails/version'
if %w(--version -v).include? ARGV.first
  puts "Rails #{Rails::VERSION::STRING}"
  exit(0)
end

ARGV << "--help" if ARGV.empty?

require 'rails/generators'
require 'rails/generators/rails/app/app_generator'

Rails::Generators::AppGenerator.start