replicator/lib/ruby/plugin.rb
# Check arguments and load configuration information. 
Check arguments and load configuration information.
Check arguments and load configuration information .
def ct_prepare
    if @operation == nil
      raise UserError, "No operation specified"
    end
    if @config_file == nil
      raise UserError, "No config file specified"
    elsif File.exist?(@config_file)
      @config = Properties.new
      @config.load(@config_file)
    else
      raise UserError, "Config file not found: " + @config_file
    end
    @args = Properties.new
    if @in_params 
       @args.setPropertiesFromList(@in_params, ";") 
    end
  end
def ct_prepare if @operation == nil raise UserError , "No operation specified" end if @config_file == nil raise UserError , "No config file specified" elsif File . exist? ( @config_file ) @config = Properties . new @config . load ( @config_file ) else raise UserError , "Config file not found: " + @config_file end @args = Properties . new if @in_params @args . setPropertiesFromList ( @in_params , ";" ) end end
Check arguments and load configuration information.
Check arguments and load configuration information .
# Ensure we have an operation.  # Load the configuration file.  # If there are options, parse them. 