Class/Module Index [+]

Quicksearch

Backup::Encryptor::OpenSSL

Attributes

base64[RW]

Determines whether the ‘base64’ should be used or not

password[RW]

The password that’ll be used to encrypt the backup. This password will be required to decrypt the backup later on.

password_file[RW]

The password file to use to encrypt the backup.

salt[RW]

Determines whether the ‘salt’ flag should be used

Public Class Methods

new(&block) click to toggle source

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

Public Instance Methods

encrypt_with() click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.