Sha256: da2a0ce41af190ffe1bc9a6d7bca8d08968084f0dc2a80a8e7d3779b3b070f09

Contents?: true

Size: 445 Bytes

Versions: 8

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

require 'dry/transaction/operation'
require 'pg_export/import'

class PgExport
  module Operations
    class OpenFtpConnection
      include Dry::Transaction::Operation
      include Import['factories.ftp_adapter_factory']

      def call(inputs)
        ftp_adapter = ftp_adapter_factory.ftp_adapter
        ftp_adapter.open_ftp
        Success(inputs.merge(ftp_adapter: ftp_adapter))
      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/operations/open_ftp_connection.rb
pg_export-0.7.6 lib/pg_export/lib/pg_export/operations/open_ftp_connection.rb
pg_export-0.7.5 lib/pg_export/lib/pg_export/operations/open_ftp_connection.rb
pg_export-0.7.4 lib/pg_export/lib/pg_export/operations/open_ftp_connection.rb
pg_export-0.7.3 lib/pg_export/lib/pg_export/operations/open_ftp_connection.rb
pg_export-0.7.2 lib/pg_export/lib/pg_export/operations/open_ftp_connection.rb
pg_export-0.7.1 lib/pg_export/lib/pg_export/operations/open_ftp_connection.rb
pg_export-0.7.0 lib/pg_export/lib/pg_export/operations/open_ftp_connection.rb