Class: Wellcar::Templates::EnvDevelopmentDatabase

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

Instance Method Summary collapse

Methods inherited from Base

#exist?, #render, #write

Constructor Details

#initialize(app_name) ⇒ EnvDevelopmentDatabase

Returns a new instance of EnvDevelopmentDatabase.



7
8
9
10
11
12
# File 'lib/wellcar/templates/env_development_database.rb', line 7

def initialize(app_name)
  super ".env/development/database"
  with_attributes app_name: app_name,
    password: SecureRandom.base64(20)
  with_template "env_development_database.erb"
end