Sha256: c4788dc61d57b08601b5a6b2b4c6fce2c1c879cb02fcb9cb575bab430791d70c

Contents?: true

Size: 597 Bytes

Versions: 56

Compression:

Stored size: 597 Bytes

Contents

# encoding: utf-8

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

56 entries across 56 versions & 7 rubygems

Version Path
backup-ssh-4.4.5 lib/backup/encryptor/base.rb
backup-remote-0.0.19 lib/backup/encryptor/base.rb
cm-backup-1.0.0 lib/backup/encryptor/base.rb
backup-ssh-4.4.4 lib/backup/encryptor/base.rb
backup-ssh-4.4.3 lib/backup/encryptor/base.rb
backup-4.4.1 lib/backup/encryptor/base.rb
backup-remote-0.0.18 lib/backup/encryptor/base.rb
backup-remote-0.0.17 lib/backup/encryptor/base.rb
backup-remote-0.0.16 lib/backup/encryptor/base.rb
backup-remote-0.0.15 lib/backup/encryptor/base.rb
backup-ssh-4.4.2 lib/backup/encryptor/base.rb
backup-ssh-4.4.1 lib/backup/encryptor/base.rb
backup-remote-0.0.14 lib/backup/encryptor/base.rb
backup-remote-0.0.13 lib/backup/encryptor/base.rb
backup-remote-0.0.12 lib/backup/encryptor/base.rb
backup-remote-0.0.11 lib/backup/encryptor/base.rb
backup-ssh-4.4.0 lib/backup/encryptor/base.rb
backup-remote-0.0.10 lib/backup/encryptor/base.rb
backup-remote-0.0.9 lib/backup/encryptor/base.rb
backup-remote-0.0.8 lib/backup/encryptor/base.rb