Class: Flipflop::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Flipflop::InstallGenerator
- Defined in:
- lib/generators/flipflop/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#configure_dashboard ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/generators/flipflop/install/install_generator.rb', line 12 def configure_dashboard app = tmpl("-> { head :forbidden }") env_dev_test = tmpl("nil") environment(indent(app + "\n", 4).lstrip) environment(indent(env_dev_test + "\n", 2).lstrip, env: [:development, :test]) end |
#invoke_generators ⇒ Object
6 7 8 9 10 |
# File 'lib/generators/flipflop/install/install_generator.rb', line 6 def invoke_generators Flipflop::FeaturesGenerator.new([], ).invoke_all Flipflop::MigrationGenerator.new([], ).invoke_all Flipflop::RoutesGenerator.new([], ).invoke_all end |