mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
3cb5375832
Signed-off-by: José Valim <jose.valim@gmail.com>
18 lines
350 B
Ruby
18 lines
350 B
Ruby
require 'rails/version'
|
|
if %w(--version -v).include? ARGV.first
|
|
puts "Rails #{Rails::VERSION::STRING}"
|
|
exit(0)
|
|
end
|
|
|
|
if ARGV.first != "new"
|
|
ARGV[0] = "--help"
|
|
else
|
|
ARGV.shift
|
|
end
|
|
|
|
require 'rubygems' if ARGV.include?("--dev")
|
|
|
|
require 'rails/generators'
|
|
require 'rails/generators/rails/app/app_generator'
|
|
|
|
Rails::Generators::AppGenerator.start
|