Class: Suspenders::Generators::Environments::ProductionGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/suspenders/environments/production_generator.rb

Instance Method Summary collapse

Instance Method Details

#require_master_keyObject



11
12
13
14
15
16
17
# File 'lib/generators/suspenders/environments/production_generator.rb', line 11

def require_master_key
  if production_config.match?(/^\s*#\s*config\.require_master_key\s*=\s*true/)
    uncomment_lines "config/environments/production.rb", /config\.require_master_key\s*=\s*true/
  else
    environment %(config.require_master_key = true), env: "production"
  end
end