Class | RR::BaseRunner |
In: |
lib/rubyrep/base_runner.rb
|
Parent: | Object |
This class implements the base functionality for runners that process table specs.
DEFAULT_OPTIONS | = | { :table_specs => [] | Default options if not overriden in command line |
options | [RW] |
Provided options. Possible values:
|
report_printer_arg | [RW] | The specified option parameter for the report printer |
report_printer_class | [RW] | The class for the selected report printer |
selected_progress_printer | [RW] | Returns the command line selected ScanProgressPrinters class |
session | [W] |
Entry points for executing a processing run. args: the array of command line options that were provided by the user.
Intended to be overwritten by derived classes that need to add additional options to the provided OptionParser object.
Creates a processor that does something with the given table. A processor needs to implement a run method that yields for progress reporting purposes pairs of diff_type and row as defined under DirectTableScan#run.
Intended to be overwritten by derived classes that need to modify the table_pairs.
Returns the new table pairs array.
Parses the given command line parameter array. Returns the status (as per UNIX conventions: 1 if parameters were invalid, 0 otherwise)
Returns the active ScanProgressPrinter class (as selected through the command line options OR if none was selected, the default one).
Returns the active ScanReportPrinters instance (as selected through the command line options OR if none was selected, the default one).