Sha256: 7b4d5fa8f9d8a4dfa9156fe411bbdbb81d20ef33e04965662423a553f1108332

Contents?: true

Size: 513 Bytes

Versions: 55

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
avm-tools-0.113.2 lib/avm/postgresql/instance_with.rb
avm-tools-0.113.1 lib/avm/postgresql/instance_with.rb
avm-tools-0.113.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.112.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.111.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.110.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.109.1 lib/avm/postgresql/instance_with.rb
avm-tools-0.109.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.108.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.107.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.106.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.105.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.104.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.103.1 lib/avm/postgresql/instance_with.rb
avm-tools-0.103.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.102.2 lib/avm/postgresql/instance_with.rb
avm-tools-0.102.1 lib/avm/postgresql/instance_with.rb
avm-tools-0.102.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.101.0 lib/avm/postgresql/instance_with.rb
avm-tools-0.100.0 lib/avm/postgresql/instance_with.rb