Class: FileConfigParser

Inherits:
Object
  • Object
show all
Defined in:
lib/hiptest-publisher/options_parser.rb

Class Method Summary collapse

Class Method Details

.update_options(options, reporter) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/hiptest-publisher/options_parser.rb', line 9

def self.update_options(options, reporter)
  config = ParseConfig.new(options.config)
  config.get_params.each do |param|
    next if options.__cli_args && options.__cli_args.include?(param.to_sym)
    options[param] = config[param]
    options.__config_args << param.to_sym if options.__config_args
  end
rescue => err
  reporter.dump_error(err)
end