Class RR::GenerateRunner
In: lib/rubyrep/generate_runner.rb
Parent: Object

This class implements the functionality of the ‘generate’ command.

Methods

Constants

CONFIG_TEMPLATE = <<EOF RR::Initializer::run do |config| config.left = { :adapter => 'postgresql', # or 'mysql' :database => 'SCOTT', :username => 'scott', :password => 'tiger', :host => '172.16.1.1' } config.right = { :adapter => 'postgresql', :database => 'SCOTT', :username => 'scott', :password => 'tiger', :host => '172.16.1.2' } config.include_tables 'dept' config.include_tables /^e/ # regexp matching all tables starting with e # config.include_tables /./ # regexp matching all tables in the database end EOF

Attributes

options  [RW]  Provided options. Possible values:
  • +:config_file+: path to config file

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

Generates a configuration file template.

Parses the given command line parameter array. Returns the status (as per UNIX conventions: 1 if parameters were invalid, 0 otherwise)

[Validate]