Sha256: a50f2cfa764eb7efc20bdfb38601360414fecebe8350cc5e4a4ea8941f82f173

Contents?: true

Size: 617 Bytes

Versions: 11

Compression:

Stored size: 617 Bytes

Contents

# encoding: utf-8

module Backup
  module Encryptor
    class Base
      include Backup::CLI::Helpers
      include Backup::Configuration::Helpers

      def initialize
        load_defaults!
      end

      private

      ##
      # Return the encryptor name, with Backup namespace removed
      def encryptor_name
        self.class.to_s.sub('Backup::', '')
      end

      ##
      # Logs a message to the console and log file to inform
      # the client that Backup is encrypting the archive
      def log!
        Logger.message "Using #{ encryptor_name } to encrypt the archive."
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
backup-agoddard-3.0.28 lib/backup/encryptor/base.rb
backup-agoddard-3.0.27 lib/backup/encryptor/base.rb
ey-vendored-backup-3.0.27 lib/backup/encryptor/base.rb
backup-3.0.27 lib/backup/encryptor/base.rb
backup-3.0.26 lib/backup/encryptor/base.rb
backup-3.0.25 lib/backup/encryptor/base.rb
backup-3.0.24 lib/backup/encryptor/base.rb
backup_checksum-3.0.23 lib/backup/encryptor/base.rb
backup-3.0.23 lib/backup/encryptor/base.rb
backup-3.0.22 lib/backup/encryptor/base.rb
backup-3.0.21 lib/backup/encryptor/base.rb