Module: Avm::Postgresql::InstanceWith

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

Instance Method Summary collapse

Instance Method Details

#pgObject



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

def pg
  @pg ||= ::Avm::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