Class RR::BaseRunner
In: lib/rubyrep/base_runner.rb
Parent: Object

This class implements the base functionality for runners that process table specs.

Methods

Constants

DEFAULT_OPTIONS = { :table_specs => []   Default options if not overriden in command line

Attributes

options  [RW]  Provided options. Possible values:
  • +:config_file+: path to config file
  • +:table_specs+: array of table specification strings
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] 

Public Class methods

Entry points for executing a processing run. args: the array of command line options that were provided by the user.

Public Instance methods

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.

Executes a run based on the established options.

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).

Returns the active Session. Loads config file and creates session if necessary.

Signals scan completion to the (active) scan report printer if it supports that method.

Returns the default command summary description (nothing). Should be overwritten by child classes.

Returns the table pairs that should be processed. Refer to TableSpecRsolver#resolve for format of return value.

[Validate]