mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
13 lines
No EOL
316 B
Ruby
13 lines
No EOL
316 B
Ruby
require 'rails/version'
|
|
if %w(--version -v).include? ARGV.first
|
|
puts "Rails #{Rails::VERSION::STRING}"
|
|
exit(0)
|
|
end
|
|
|
|
ARGV << "--help" if ARGV.empty?
|
|
require 'rubygems' if ARGV.include?("--dev")
|
|
|
|
require 'rails/generators'
|
|
require 'rails/generators/rails/app/app_generator'
|
|
|
|
Rails::Generators::AppGenerator.start |