Class: DuodealerApp::Generators::DuodealerAppGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- DuodealerApp::Generators::DuodealerAppGenerator
- Defined in:
- lib/generators/duodealer_app/duodealer_app_generator.rb
Instance Method Summary collapse
-
#initialize(args, *options) ⇒ DuodealerAppGenerator
constructor
A new instance of DuodealerAppGenerator.
- #run_all_generators ⇒ Object
Constructor Details
#initialize(args, *options) ⇒ DuodealerAppGenerator
Returns a new instance of DuodealerAppGenerator.
4 5 6 7 |
# File 'lib/generators/duodealer_app/duodealer_app_generator.rb', line 4 def initialize(args, *) @opts = .first super(args, *) end |
Instance Method Details
#run_all_generators ⇒ Object
9 10 11 12 13 14 |
# File 'lib/generators/duodealer_app/duodealer_app_generator.rb', line 9 def run_all_generators generate "duodealer_app:install #{@opts.join(' ')}" generate "duodealer_app:account_model" generate("duodealer_app:authenticated_controller") generate "duodealer_app:home_controller" end |