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) ⇒ Object



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

def self.update_options(options)
  config = ParseConfig.new(options.config)
  config.get_params.each do |param|
    options.send("#{param}=", config[param])
  end
  options

rescue Exception => err
  trace_exception(err) if options.verbose
  options
end