class Embryo::ApplicationGenerator
Public Instance Methods
install()
click to toggle source
# File lib/generators/embryo/application.rb, line 9 def install create_file "config/secrets.yml", secrets_yml_data create_file "config/secrets.yml.example", secrets_yml_data gitignore "config/secrets.yml" duplicate_file "config/environments/staging.rb", "config/environments/production.rb" end
Private Instance Methods
new_secret()
click to toggle source
# File lib/generators/embryo/application.rb, line 27 def new_secret SecureRandom.hex 64 end
secrets_yml_data()
click to toggle source
# File lib/generators/embryo/application.rb, line 18 def secrets_yml_data @secrets_yml_data ||= "development: secret_key_base: #{new_secret} test: secret_key_base: #{new_secret} " end