aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin/rails
blob: 4d08ca392d3c4d5c00268accf50e9297d5004759 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
require File.dirname(__FILE__) + '/../lib/ruby_version_check'
Signal.trap("INT") { puts; exit }

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

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

require File.dirname(__FILE__) + '/../lib/generator/generators/app/app_generator'
Rails::Generators::AppGenerator.start