Class: Flipflop::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/flipflop/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#configure_dashboardObject



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_generatorsObject



6
7
8
9
10
# File 'lib/generators/flipflop/install/install_generator.rb', line 6

def invoke_generators
  Flipflop::FeaturesGenerator.new([], options).invoke_all
  Flipflop::MigrationGenerator.new([], options).invoke_all
  Flipflop::RoutesGenerator.new([], options).invoke_all
end