Class Backup::Encryptor::GPG
In: lib/backup/encryptor/gpg.rb
Parent: Base

Methods

encrypt_with   new  

Attributes

key  [RW]  The GPG Public key that‘ll be used to encrypt the backup

Public Class methods

Creates a new instance of Backup::Encryptor::GPG and sets the key to the provided GPG key. To enhance the DSL the user may use tabs and spaces to indent the multi-line key string since we gsub() every preceding ‘space’ and ‘tab’ on each line

Public Instance methods

This is called as part of the procedure run by the Packager. It sets up the needed encryption_key_email to pass to the gpg 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.

[Validate]