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





                        
                                                         
RAILS_ENV.replace "generators"
require "#{RAILS_ROOT}/config/environment"

if ARGV.size == 0
  Rails::Generators.help
  exit
end

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