Sha256: 241444962fa3a088049dfbeb0849c6fee448882ae2b2b10aeb2c486df5ad375a

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

require 'pg_export/value_objects/result'

class PgExport
  module Operations
    class EncryptDump
      def initialize(cipher_factory:)
        @cipher_factory = cipher_factory
      end

      def name
        :encrypt_dump
      end

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

        ValueObjects::Success.new(dump: dump)
      end

      private

      attr_reader :cipher_factory
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_export-1.0.0 lib/pg_export/operations/encrypt_dump.rb
pg_export-1.0.0.rc8 lib/pg_export/operations/encrypt_dump.rb