1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/bin/rails

16 lines
421 B
Text
Raw Normal View History

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?
2009-06-23 13:10:42 -04:00
require File.dirname(__FILE__) + '/../lib/generators'
require 'generators/rails/app/app_generator'
2009-06-23 08:42:59 -04:00
Rails::Generators::AppGenerator.start