mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
13 lines
380 B
Text
Executable file
13 lines
380 B
Text
Executable file
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'
|
|
Rails::Generators::App.start
|