Module: Rehabilitate

Defined in:
lib/rehabilitate.rb,
lib/rehabilitate/plugin.rb,
lib/rehabilitate/version.rb

Defined Under Namespace

Classes: Plugin

Constant Summary collapse

VERSION =
"0.4.12"

Class Method Summary collapse

Class Method Details

.backup(options) ⇒ Object



5
6
7
8
# File 'lib/rehabilitate.rb', line 5

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

.compress(options) ⇒ Object



15
16
17
18
# File 'lib/rehabilitate.rb', line 15

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

.download(options) ⇒ Object



30
31
32
33
# File 'lib/rehabilitate.rb', line 30

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

.list(options) ⇒ Object



35
36
37
38
# File 'lib/rehabilitate.rb', line 35

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

.restore(options) ⇒ Object



10
11
12
13
# File 'lib/rehabilitate.rb', line 10

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

.uncompress(options) ⇒ Object



20
21
22
23
# File 'lib/rehabilitate.rb', line 20

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

.upload(options) ⇒ Object



25
26
27
28
# File 'lib/rehabilitate.rb', line 25

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