Class: Outback::Processor

Inherits:
Object show all
Includes:
Configurable, Logging
Defined in:
lib/outback/processor.rb

Direct Known Subclasses

EncryptionProcessor

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logging

#logger

Methods included from Configurable

#attr_setter, included

Constructor Details

#initialize(backup_name) ⇒ Processor

Returns a new instance of Processor.



8
9
10
# File 'lib/outback/processor.rb', line 8

def initialize(backup_name)
  @backup_name = backup_name
end

Instance Attribute Details

#backup_nameObject (readonly)

Returns the value of attribute backup_name.



6
7
8
# File 'lib/outback/processor.rb', line 6

def backup_name
  @backup_name
end

Instance Method Details

#process!(archives) ⇒ Object



12
13
14
# File 'lib/outback/processor.rb', line 12

def process!(archives)
  archives.map { |archive| process_archive!(archive) }.flatten.compact
end