Class: Outback::Processor
- Includes:
- Configurable, Logging
- Defined in:
- lib/outback/processor.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#backup_name ⇒ Object
readonly
Returns the value of attribute backup_name.
Instance Method Summary collapse
-
#initialize(backup_name) ⇒ Processor
constructor
A new instance of Processor.
- #process!(archives) ⇒ Object
Methods included from Logging
Methods included from Configurable
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_name ⇒ Object (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 |