Project

General

Profile

« Previous | Next » 

Revision 181810b0

Added by Ivan Necas almost 7 years ago

Add --whitelist option

Allows to mark some steps to be ignored in the results: allows to
continue even when some checks are failing.

View differences:

lib/foreman_maintain/cli/base.rb
end
def run_scenario(scenarios)
ForemanMaintain::Runner.new(reporter, scenarios, :assumeyes => assumeyes?).run
ForemanMaintain::Runner.new(reporter, scenarios,
:assumeyes => assumeyes?,
:whitelist => whitelist || []).run
end
def available_checks
......
def self.interactive_option
option ['-y', '--assumeyes'], :flag,
'Automatically answer yes for all questions'
option ['-w', '--whitelist'], :whitelist,
'Comma-separated list of labels of steps to be ignored' do |whitelist|
raise ArgumentError, 'value not specified' if whitelist.nil? || whitelist.empty?
whitelist.split(',').map(&:strip)
end
end
end
end

Also available in: Unified diff