# File lib/backup/encryptor/gpg.rb, line 419
      def encrypt_with
        log!
        prepare

        if mode_options.empty?
          raise Errors::Encryptor::GPG::EncryptionError,
              "Encryption could not be performed for mode '#{ mode }'"
        end

        yield "#{ utility(:gpg) } #{ base_options } #{ mode_options }", '.gpg'

      ensure
        cleanup
      end