Creates a new instance of Backup::Encryptor::OpenSSL and sets the password attribute to what was provided
# File lib/backup/encryptor/open_ssl.rb, line 26 def initialize(&block) super @base64 ||= false @salt ||= true @password_file ||= nil instance_eval(&block) if block_given? end
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.
# File lib/backup/encryptor/open_ssl.rb, line 42 def encrypt_with log! yield "#{ utility(:openssl) } #{ options }", '.enc' end
Generated with the Darkfish Rdoc Generator 2.