2010-02-02 18:50:56 -05:00
|
|
|
require 'rails/generators'
|
2010-03-23 09:12:58 -04:00
|
|
|
require 'rails/generators/rails/app/app_generator'
|
2010-02-02 18:50:56 -05:00
|
|
|
|
2011-01-28 21:59:29 -05:00
|
|
|
module Rails
|
|
|
|
module Generators
|
2012-10-07 16:36:39 -04:00
|
|
|
class AppGenerator # :nodoc:
|
2011-01-28 21:59:29 -05:00
|
|
|
# We want to exit on failure to be kind to other libraries
|
|
|
|
# This is only when accessing via CLI
|
|
|
|
def self.exit_on_failure?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-10-30 17:59:22 -04:00
|
|
|
args = Rails::Generators::ARGVScrubber.new(ARGV).prepare!
|
|
|
|
Rails::Generators::AppGenerator.start args
|