Sha256: 85cc138875e30a53a30386d00deb4152fa00ce923a545bab893d82e580b6dd61

Contents?: true

Size: 375 Bytes

Versions: 13

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

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

class PgExport
  module Operations
    class EncryptDump
      include Dry::Transaction::Operation
      include Import['factories.cipher_factory']

      def call(dump:)
        dump.encrypt(cipher_factory: cipher_factory)
        Success(dump: dump)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pg_export-1.0.0.rc5 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb
pg_export-1.0.0.rc4 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb
pg_export-1.0.0.rc3 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb
pg_export-1.0.0.rc2 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb
pg_export-1.0.0.rc1 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb
pg_export-0.7.7 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb
pg_export-0.7.6 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb
pg_export-0.7.5 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb
pg_export-0.7.4 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb
pg_export-0.7.3 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb
pg_export-0.7.2 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb
pg_export-0.7.1 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb
pg_export-0.7.0 lib/pg_export/lib/pg_export/operations/encrypt_dump.rb