class BackupDriver::EncryptCommand
Public Instance Methods
backup_file()
click to toggle source
# File lib/backup_driver/encrypt_command.rb, line 11 def backup_file driver.create_command.backup_file end
do()
click to toggle source
# File lib/backup_driver/encrypt_command.rb, line 3 def do driver.log << `/usr/bin/gpg #{options[:gpg_options]} --encrypt --compress-algo bzip2 --output #{encrypted_file} #{backup_file}` end
encrypted_file()
click to toggle source
# File lib/backup_driver/encrypt_command.rb, line 7 def encrypted_file "#{backup_file}.gpg" end