Class: Expire::ReportSimple

Inherits:
ReportBase show all
Defined in:
lib/expire/report_simple.rb

Overview

Sends “keeping” and “purged” to it’s receiver

Direct Known Subclasses

ReportEnhanced

Instance Attribute Summary

Attributes inherited from ReportBase

#receiver

Instance Method Summary collapse

Methods inherited from ReportBase

#error, #initialize, #pastel

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