Class: Expire::ReportEnhanced
- Inherits:
-
ReportSimple
- Object
- ReportNull
- ReportBase
- ReportSimple
- Expire::ReportEnhanced
- Defined in:
- lib/expire/report_enhanced.rb
Overview
Detailed information about what is being kept and why
Instance Attribute Summary
Attributes inherited from ReportBase
Instance Method Summary collapse
Methods inherited from ReportSimple
Methods inherited from ReportBase
Methods inherited from ReportNull
#after_all, #after_purge, #before_all, #before_purge, #error
Constructor Details
This class inherits a constructor from Expire::ReportBase
Instance Method Details
#on_keep(backup) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/expire/report_enhanced.rb', line 6 def on_keep(backup) receiver.puts(pastel.green("keeping #{backup.pathname}")) receiver.puts " reasons:" backup.reasons_to_keep.each do |reason| receiver.puts " - #{reason}" end end |