Class: PgExport::Operations::DecryptDump
- Inherits:
-
Object
- Object
- PgExport::Operations::DecryptDump
- Includes:
- Dry::Transaction::Operation
- Defined in:
- lib/pg_export/lib/pg_export/operations/decrypt_dump.rb
Instance Method Summary collapse
Instance Method Details
#call(dump:) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/pg_export/lib/pg_export/operations/decrypt_dump.rb', line 12 def call(dump:) dump.decrypt(cipher_factory: cipher_factory) Success(dump: dump) rescue OpenSSL::Cipher::CipherError => e Failure(message: "Problem decrypting dump file: #{e}. Try again.") end |