Class: Backup::Configuration::Storage::Dropbox

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/configuration/storage/dropbox.rb

Class Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

defaults

Methods included from Helpers

#clear_defaults!, #load_defaults!

Class Attribute Details

.access_typeObject

Dropbox Access Type Valid values are:

:app_folder (default)
:dropbox (full access)


18
19
20
# File 'lib/backup/configuration/storage/dropbox.rb', line 18

def access_type
  @access_type
end

.api_keyObject

Dropbox API credentials



11
12
13
# File 'lib/backup/configuration/storage/dropbox.rb', line 11

def api_key
  @api_key
end

.api_secretObject

Dropbox API credentials



11
12
13
# File 'lib/backup/configuration/storage/dropbox.rb', line 11

def api_secret
  @api_secret
end

.pathObject

Path to where the backups will be stored



22
23
24
# File 'lib/backup/configuration/storage/dropbox.rb', line 22

def path
  @path
end

.timeoutObject

Deprecated as of v3.0.21 - for move to official ‘dropbox-sdk’ gem (v1.1)



28
29
30
# File 'lib/backup/configuration/storage/dropbox.rb', line 28

def timeout
  @timeout
end

Class Method Details

.emailObject



34
35
36
37
# File 'lib/backup/configuration/storage/dropbox.rb', line 34

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

.email=(value) ⇒ Object



39
40
41
42
# File 'lib/backup/configuration/storage/dropbox.rb', line 39

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

.passwordObject



44
45
46
47
# File 'lib/backup/configuration/storage/dropbox.rb', line 44

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

.password=(value) ⇒ Object



49
50
51
52
# File 'lib/backup/configuration/storage/dropbox.rb', line 49

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