Sha256: 4a9c2d5197b11f060d441c0286fbfc4345b9ba02f24b8c7050187c9a407ab3e9

Contents?: true

Size: 448 Bytes

Versions: 2

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

require '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

2 entries across 2 versions & 1 rubygems

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