Sha256: 41288bdc7494b985c456d95c818a543ddce8afe01175d78d92dc67d81bd62f38

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/ftp'
require 'pg_export/import'

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

      def gateway
        ::PgExport::Gateways::Ftp.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/ftp_gateway_factory.rb
pg_export-1.0.0.rc4 lib/pg_export/lib/pg_export/factories/ftp_gateway_factory.rb
pg_export-1.0.0.rc3 lib/pg_export/lib/pg_export/factories/ftp_gateway_factory.rb
pg_export-1.0.0.rc2 lib/pg_export/lib/pg_export/factories/ftp_gateway_factory.rb
pg_export-1.0.0.rc1 lib/pg_export/lib/pg_export/factories/ftp_gateway_factory.rb