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/runner/execution.rb
attr_reader :reporter
def initialize(step, reporter)
def initialize(step, reporter, options = {})
options.validate_options!(:whitelisted)
@step = step
@reporter = reporter
@status = :pending
@output = ''
@whitelisted = options[:whitelisted]
end
def name
@step.description
end
def whitelisted?
@whitelisted
end
def success?
@status == :success
end

Also available in: Unified diff