Class: Wolfe::Cleanup
- Inherits:
-
Object
- Object
- Wolfe::Cleanup
- Defined in:
- lib/wolfe/cleanup.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
Instance Method Summary collapse
-
#initialize(configuration) ⇒ Cleanup
constructor
A new instance of Cleanup.
- #start ⇒ Object
Constructor Details
#initialize(configuration) ⇒ Cleanup
Returns a new instance of Cleanup.
9 10 11 12 |
# File 'lib/wolfe/cleanup.rb', line 9 def initialize(configuration) @configuration = configuration validate_configuration end |
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration.
7 8 9 |
# File 'lib/wolfe/cleanup.rb', line 7 def configuration @configuration end |
Instance Method Details
#start ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/wolfe/cleanup.rb', line 14 def start configuration.each do |name, config| puts "-----------------------------------------------------" puts "Cleaning up backups: #{name}" puts "-----------------------------------------------------" cleanup( config ) end end |