Sha256: 583a47e3808f412172528bf74dff1f04062542c28824c73a337aa0092dbd5582

Contents?: true

Size: 587 Bytes

Versions: 62

Compression:

Stored size: 587 Bytes

Contents

# frozen_string_literal: true

require 'avm/instances/entry_keys'
require 'avm/stereotypes/postgresql/instance'

module Avm
  module Stereotypes
    module Postgresql
      module InstanceWith
        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
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
avm-tools-0.32.0 lib/avm/stereotypes/postgresql/instance_with.rb
avm-tools-0.31.0 lib/avm/stereotypes/postgresql/instance_with.rb