Class: Rehabilitate

Inherits:
Object
  • Object
show all
Defined in:
lib/rehabilitate.rb

Constant Summary collapse

VERSION =
"0.3.10"

Class Method Summary collapse

Class Method Details

.backup(options) ⇒ Object



7
8
9
10
# File 'lib/rehabilitate.rb', line 7

def self.backup(options)
  driver = Plugin::create( options.driver )
  driver.backup(options)
end

.compress(options) ⇒ Object



17
18
19
20
# File 'lib/rehabilitate.rb', line 17

def self.compress(options)
  driver = Plugin::create( options.compressor )
  driver.compress(options)
end

.download(options) ⇒ Object



32
33
34
35
# File 'lib/rehabilitate.rb', line 32

def self.download(options)
  driver = Plugin::create( options.storage )
  driver.download(options)
end

.list(options) ⇒ Object



37
38
39
40
# File 'lib/rehabilitate.rb', line 37

def self.list(options)
  driver = Plugin::create( options.storage )
  driver.list(options)
end

.restore(options) ⇒ Object



12
13
14
15
# File 'lib/rehabilitate.rb', line 12

def self.restore(options)
  driver = Plugin::create( options.driver )
  driver.restore(options)
end

.uncompress(options) ⇒ Object



22
23
24
25
# File 'lib/rehabilitate.rb', line 22

def self.uncompress(options)
  driver = Plugin::create( options.compressor )
  driver.uncompress(options)
end

.upload(options) ⇒ Object



27
28
29
30
# File 'lib/rehabilitate.rb', line 27

def self.upload(options)
  driver = Plugin::create( options.storage )
  driver.upload(options)
end