Module: Avm::Stereotypes::Postgresql::InstanceWith

Included in:
EacWebappBase0::Instance
Defined in:
lib/avm/stereotypes/postgresql/instance_with.rb

Instance Method Summary collapse

Instance Method Details

#pgObject



9
10
11
12
13
14
# File 'lib/avm/stereotypes/postgresql/instance_with.rb', line 9

def pg
  @pg ||= ::Avm::Stereotypes::Postgresql::Instance.new(
    host_env, user: read_entry('database.user'), password: read_entry('database.password'),
              name: read_entry('database.name')
  )
end