Class: Undestroy::Archive

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Archive

Returns a new instance of Archive.



5
6
7
8
9
10
11
12
# File 'lib/undestroy/archive.rb', line 5

def initialize(args={})
  validate_arguments(args)

  self.source = args[:source]
  self.config = args[:config]
  self.transfer = args[:transfer]
  self.transfer_options = args[:transfer_options]
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



3
4
5
# File 'lib/undestroy/archive.rb', line 3

def config
  @config
end

#sourceObject

Returns the value of attribute source.



3
4
5
# File 'lib/undestroy/archive.rb', line 3

def source
  @source
end

#transferObject

Returns the value of attribute transfer.



3
4
5
# File 'lib/undestroy/archive.rb', line 3

def transfer
  @transfer
end

#transfer_optionsObject

Returns the value of attribute transfer_options.



3
4
5
# File 'lib/undestroy/archive.rb', line 3

def transfer_options
  @transfer_options
end

Instance Method Details

#runObject



23
24
25
# File 'lib/undestroy/archive.rb', line 23

def run
  transfer.run
end