Sha256: a370c7bc028f7ce4c69dcc9ef6765feb978f79604cc36194ddf3a44e091da28e

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

require 'pg_export/lib/pg_export/gateways/ftp'

class PgExport
  module Factories
    class FtpGatewayFactory
      def initialize(config:)
        @config = config
      end

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

      private

      attr_reader :config
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pg_export-1.0.0.rc6 lib/pg_export/lib/pg_export/factories/ftp_gateway_factory.rb