Sha256: 194bf57b203a00b871b2aacac0f8183eb030eb7b459c5140a1128491d3b71b09

Contents?: true

Size: 437 Bytes

Versions: 5

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

# auto_register: false

require 'pg_export/lib/pg_export/gateways/ssh'
require 'pg_export/import'

class PgExport
  module Factories
    class SshGatewayFactory
      include Import['config']

      def gateway
        ::PgExport::Gateways::Ssh.new(
          host: config.gateway_host,
          user: config.gateway_user,
          password: config.gateway_password
        )
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pg_export-1.0.0.rc5 lib/pg_export/lib/pg_export/factories/ssh_gateway_factory.rb
pg_export-1.0.0.rc4 lib/pg_export/lib/pg_export/factories/ssh_gateway_factory.rb
pg_export-1.0.0.rc3 lib/pg_export/lib/pg_export/factories/ssh_gateway_factory.rb
pg_export-1.0.0.rc2 lib/pg_export/lib/pg_export/factories/ssh_gateway_factory.rb
pg_export-1.0.0.rc1 lib/pg_export/lib/pg_export/factories/ssh_gateway_factory.rb