Sha256: 5b8ae764177947cf9c44a4a1dd2d72a38d0223b381364ecec37c068da319387f

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

# encoding: utf-8

module Backup
  module Configuration
    module Storage
      class Dropbox < Base
        class << self

          ##
          # Dropbox API credentials
          attr_accessor :api_key, :api_secret

          ##
          # Path to where the backups will be stored
          attr_accessor :path

          ##
          # Dropbox connection timeout
          attr_accessor :timeout


          # DEPRECATED METHODS #############################################

          def email
            Logger.warn "[DEPRECATED] Backup::Configuration::Storage::Dropbox.email\n" +
                "  is deprecated and will be removed at some point."
          end

          def email=(value)
            Logger.warn "[DEPRECATED] Backup::Configuration::Storage::Dropbox.email=\n" +
                "  is deprecated and will be removed at some point."
          end

          def password
            Logger.warn "[DEPRECATED] Backup::Configuration::Storage::Dropbox.password\n" +
                "  is deprecated and will be removed at some point."
          end

          def password=(value)
            Logger.warn "[DEPRECATED] Backup::Configuration::Storage::Dropbox.password=\n" +
                "  is deprecated and will be removed at some point."
          end

        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
backup-3.0.20 lib/backup/configuration/storage/dropbox.rb