Class: Wellcar::Templates::EnvProductionDatabase
- Defined in:
- lib/wellcar/templates/env_production_database.rb
Instance Method Summary collapse
-
#initialize(app_name) ⇒ EnvProductionDatabase
constructor
A new instance of EnvProductionDatabase.
Methods inherited from Base
Constructor Details
#initialize(app_name) ⇒ EnvProductionDatabase
Returns a new instance of EnvProductionDatabase.
7 8 9 10 11 12 |
# File 'lib/wellcar/templates/env_production_database.rb', line 7 def initialize(app_name) super ".env/production/database" with_attributes app_name: app_name, password: SecureRandom.base64(20) with_template "env_production_database.erb" end |