Sha256: 97216f67599618740648799596c0fe27fca265302fc9f73486a95366847a5467

Contents?: true

Size: 444 Bytes

Versions: 8

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

# auto_register: false

require 'pg_export/lib/pg_export/adapters/ftp_adapter'
require 'pg_export/import'

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

      def ftp_adapter
        ::PgExport::Adapters::FtpAdapter.new(
          host: config.ftp_host,
          user: config.ftp_user,
          password: config.ftp_password
        )
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pg_export-0.7.7 lib/pg_export/lib/pg_export/factories/ftp_adapter_factory.rb
pg_export-0.7.6 lib/pg_export/lib/pg_export/factories/ftp_adapter_factory.rb
pg_export-0.7.5 lib/pg_export/lib/pg_export/factories/ftp_adapter_factory.rb
pg_export-0.7.4 lib/pg_export/lib/pg_export/factories/ftp_adapter_factory.rb
pg_export-0.7.3 lib/pg_export/lib/pg_export/factories/ftp_adapter_factory.rb
pg_export-0.7.2 lib/pg_export/lib/pg_export/factories/ftp_adapter_factory.rb
pg_export-0.7.1 lib/pg_export/lib/pg_export/factories/ftp_adapter_factory.rb
pg_export-0.7.0 lib/pg_export/lib/pg_export/factories/ftp_adapter_factory.rb