2006-03-19 13:55:31 -05:00
|
|
|
require File.dirname(__FILE__) + '/../lib/ruby_version_check'
|
2005-05-21 07:05:18 -04:00
|
|
|
Signal.trap("INT") { puts; exit }
|
|
|
|
|
2006-04-01 01:18:33 -05:00
|
|
|
require File.dirname(__FILE__) + '/../lib/rails/version'
|
2006-04-03 18:39:36 -04:00
|
|
|
if %w(--version -v).include? ARGV.first
|
|
|
|
puts "Rails #{Rails::VERSION::STRING}"
|
|
|
|
exit(0)
|
|
|
|
end
|
2005-10-09 17:15:45 -04:00
|
|
|
|
2009-06-17 12:26:08 -04:00
|
|
|
ARGV << "--help" if ARGV.empty?
|
|
|
|
|
2009-06-17 07:00:59 -04:00
|
|
|
require File.dirname(__FILE__) + '/../lib/generator/generators/app'
|
|
|
|
Rails::Generators::App.start
|