Sha256: 81f24260618b42e92348e825a1eba27c2f43be11a73b442a2c2dce3a824285df

Contents?: true

Size: 576 Bytes

Versions: 13

Compression:

Stored size: 576 Bytes

Contents

module Backup
  module Encryptor
    class Base
      include Utilities::Helpers
      include Config::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.info "Using #{encryptor_name} to encrypt the archive."
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
backup-5.0.0.beta.3 lib/backup/encryptor/base.rb
backedup-5.0.0.beta.5 lib/backup/encryptor/base.rb
backedup-5.0.0.beta.4 lib/backup/encryptor/base.rb
backedup-5.0.0.beta.3 lib/backup/encryptor/base.rb
ext_backup-5.0.0.beta.2.1 lib/backup/encryptor/base.rb
ext_backup-5.0.0.beta.2.ext.0.1.2 lib/backup/encryptor/base.rb
ext_backup-5.0.0.beta.2.ext.0.1.1 lib/backup/encryptor/base.rb
ext_backup-5.0.0.beta.2.ext.0.1.0 lib/backup/encryptor/base.rb
backup-5.0.0.beta.2 lib/backup/encryptor/base.rb
backup-5.0.0.beta.1 lib/backup/encryptor/base.rb
backup-bouchard-4.4.4 lib/backup/encryptor/base.rb
backup-bouchard-4.4.2 lib/backup/encryptor/base.rb
backup-bouchard-4.4.1 lib/backup/encryptor/base.rb