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



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

def pg
  @pg ||= ::Avm::Stereotypes::Postgresql::Instance.new(
    host_env, user: read_entry(::Avm::Instances::EntryKeys::DATABASE_USERNAME),
              password: read_entry(::Avm::Instances::EntryKeys::DATABASE_PASSWORD),
              name: read_entry(::Avm::Instances::EntryKeys::DATABASE_NAME)
  )
end