aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin/rails
blob: 538d0cbc841f1d1011053cc5f71b6363ae7c131b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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/generators'
require 'generators/rails/app/app_generator'

Rails::Generators::AppGenerator.start