Sha256: f0f63838870b17acfd8521040f978d0bd6d613f58c8fdcc34704a55fd86e7734

Contents?: true

Size: 833 Bytes

Versions: 36

Compression:

Stored size: 833 Bytes

Contents

# frozen_string_literal: true

module Orchestration
  module Services
    module Database
      module Adapters
        class Postgresql
          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

36 entries across 36 versions & 1 rubygems

Version Path
orchestration-0.5.14 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.13 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.12 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.11 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.10 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.9 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.8 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.7 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.6 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.5 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.4 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.3 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.2 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.1 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.5.0 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.4.21 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.4.20 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.4.19 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.4.18 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.4.17 lib/orchestration/services/database/adapters/postgresql.rb