aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/commands/generate.rb
blob: 7d05a30de818778ab60b41ebe500ab3fbcb33af1 (plain) (tree)
1
2
3
4
5
6
7
8
9
                          
 

                                             



                 
                                                                                          
require 'rails/generators'

if [nil, "-h", "--help"].include?(ARGV.first)
  Rails::Generators.help 'generate'
  exit
end

name = ARGV.shift
Rails::Generators.invoke name, ARGV, :behavior => :invoke, :destination_root => Rails.root