mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
10 lines
277 B
Ruby
10 lines
277 B
Ruby
require 'rails/generators'
|
|
require 'active_support/core_ext/object/inclusion'
|
|
|
|
if ARGV.first.in?([nil, "-h", "--help"])
|
|
Rails::Generators.help 'generate'
|
|
exit
|
|
end
|
|
|
|
name = ARGV.shift
|
|
Rails::Generators.invoke name, ARGV, :behavior => :invoke, :destination_root => Rails.root
|