Class: Outback::Target
- Includes:
- Configurable, Logging
- Defined in:
- lib/outback/target.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) ⇒ Target
constructor
A new instance of Target.
- #purge! ⇒ Object
Methods included from Logging
Methods included from Configurable
Constructor Details
#initialize(backup_name) ⇒ Target
8 9 10 |
# File 'lib/outback/target.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/target.rb', line 6 def backup_name @backup_name end |
Instance Method Details
#purge! ⇒ Object
12 13 14 15 16 |
# File 'lib/outback/target.rb', line 12 def purge! if purged_archives = connect { purge_archives } logger.info "Purged #{purged_archives.size} archives (#{purged_archives.sum(&:size)} bytes) from #{self}" end end |