Class: Expire::ReportSimple
- Inherits:
-
ReportBase
- Object
- ReportNull
- ReportBase
- Expire::ReportSimple
- Defined in:
- lib/expire/report_simple.rb
Overview
Sends “keeping” and “purged” to it’s receiver
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ReportBase
Instance Method Summary collapse
Methods inherited from ReportBase
Methods inherited from ReportNull
#after_all, #before_all, #before_purge, #error
Constructor Details
This class inherits a constructor from Expire::ReportBase
Instance Method Details
#after_purge(backup) ⇒ Object
10 11 12 |
# File 'lib/expire/report_simple.rb', line 10 def after_purge(backup) receiver.puts(pastel.yellow("purged #{backup.pathname}")) end |
#on_keep(backup) ⇒ Object
6 7 8 |
# File 'lib/expire/report_simple.rb', line 6 def on_keep(backup) receiver.puts(pastel.green("keeping #{backup.pathname}")) end |