Sha256: 0db33269bbcefadd4aa5f7a605c282457d613f2bd7a9b5fc8c72e376fad2e683

Contents?: true

Size: 864 Bytes

Versions: 32

Compression:

Stored size: 864 Bytes

Contents

# frozen_string_literal: true

module Orchestration
  module Services
    module Database
      module Adapters
        class Postgresql
          include AdapterBase

          def name
            'postgresql'
          end

          def image
            'library/postgres'
          end

          def credentials
            {
              'username' => 'postgres',
              'password' => 'password',
              'database' => 'postgres'
            }
          end

          def errors
            [PG::ConnectionBad]
          end

          def default_port
            5432
          end

          def environment
            {
              'POSTGRES_PASSWORD' => 'password',
              'PGDATA' => data_dir
            }
          end

          def data_dir
            '/var/pgdata'
          end
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
orchestration-0.7.15 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.6.16 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.7.14 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.7.13 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.6.15 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.7.12 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.6.14 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.7.11 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.6.13 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.7.10 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.7.9 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.6.12 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.7.8 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.6.11 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.7.6 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.6.10 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.7.5 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.7.4 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.6.9 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.6.8 lib/orchestration/services/database/adapters/postgresql.rb