aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/commands/application.rb
blob: 47c6752ca3dd91a3b50ccb71af21501d379236ce (plain) (tree)
1
2
3
4
5
6
7





                                        
                      




                    
                                            

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

if ARGV.first != "new"
  ARGV[0] = "--help"
else
  ARGV.shift
end

require 'rubygems' if ARGV.include?("--dev")

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

Rails::Generators::AppGenerator.start