Class: Wellcar::Templates::EnvProductionDatabase

Inherits:
Base
  • Object
show all
Defined in:
lib/wellcar/templates/env_production_database.rb

Instance Method Summary collapse

Methods inherited from Base

#exist?, #render, #write

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