Sha256: c7f7429c78c20a1a7052677fa3727a2e6c26f83d8aa8774289af89f0fe17c7e9

Contents?: true

Size: 340 Bytes

Versions: 5

Compression:

Stored size: 340 Bytes

Contents

class PgExport
  class SendDumpToFtp
    include Logging

    def initialize(dump, ftp_service)
      @dump = dump
      @ftp_service = ftp_service
    end

    def call
      ftp_service.upload_file(dump.pathname_gz)
      logger.info "Export #{dump.basename_gz} to FTP"
    end

    private

    attr_reader :dump, :ftp_service
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pg_export-0.2.0 lib/pg_export/actions/send_dump_to_ftp.rb
pg_export-0.1.3 lib/pg_export/actions/send_dump_to_ftp.rb
pg_export-0.1.2 lib/pg_export/actions/send_dump_to_ftp.rb
pg_export-0.1.1 lib/pg_export/actions/send_dump_to_ftp.rb
pg_export-0.1.0 lib/pg_export/actions/send_dump_to_ftp.rb