mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
8d9310db94
AppPreparer doesn't actually prepare applications, it scrubs ARGV. Let's also get the class under test while we're at it
17 lines
417 B
Ruby
17 lines
417 B
Ruby
require 'rails/generators'
|
|
require 'rails/generators/rails/app/app_generator'
|
|
|
|
module Rails
|
|
module Generators
|
|
class AppGenerator # :nodoc:
|
|
# 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
|
|
|
|
Rails::Generators::ARGVScrubber.new(ARGV).prepare!
|
|
Rails::Generators::AppGenerator.start
|