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

                                 
                                                        
                                                                               
 
                                                          
 
                                          
                                               
                                                                      
require File.dirname(__FILE__) + '/../lib/ruby_version_check'
Signal.trap("INT") { puts; exit }

require File.dirname(__FILE__) + '/../lib/rails_version'
abort "Rails #{Rails::VERSION::STRING}" if %w(--version -v).include? ARGV.first

require File.dirname(__FILE__) + '/../lib/rails_generator'

require 'rails_generator/scripts/generate'
Rails::Generator::Base.use_application_sources!
Rails::Generator::Scripts::Generate.new.run(ARGV, :generator => 'app')