Method: Backup::Encryptor::OpenSSL#encrypt_with

Defined in:
lib/backup/encryptor/open_ssl.rb

#encrypt_with {|"#{ utility(:openssl) } #{ options }", '.enc'| ... } ⇒ Object

This is called as part of the procedure run by the Packager. It sets up the needed options to pass to the openssl command, then yields the command to use as part of the packaging procedure. Once the packaging procedure is complete, it will return so that any clean-up may be performed after the yield.

Yields:

  • ("#{ utility(:openssl) } #{ options }", '.enc')


43
44
45
46
# File 'lib/backup/encryptor/open_ssl.rb', line 43

def encrypt_with
  log!
  yield "#{ utility(:openssl) } #{ options }", '.enc'
end