Class RR::ScanReportPrinters::ScanSummaryReporter
In: lib/rubyrep/scan_report_printers/scan_summary_reporter.rb
Parent: Object

A ScanReportPrinter producing a summary (number of differences) only.

Methods

Attributes

left_table  [RW]  Name of the left table of the current scan
only_totals  [RW]  Set to true if only the total number of differences should be reported
right_table  [RW]  Name of the right table of the current scan
scan_result  [RW]  Hold the result of the current scan. A hash with a running count of
 +:conflict+, +:left+ (only) or +:right+ (only) records.

Public Class methods

A scan run is to be started using this scan result printer. arg is the command line argument as yielded by OptionParser#on.

Public Instance methods

Each difference is handed to the printer as described in the format as described e. g. in DirectTableScan#run

A scan of the given ‘left’ table and corresponding ‘right’ table is executed. Needs to yield so that the actual scan can be executed.

Optional method. If a scan report printer has it, it is called after the last table scan is executed. (A good place to print a final summary.)

[Validate]