Revision 181810b0
Added by Ivan Necas almost 7 years ago
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
Add --whitelist option
Allows to mark some steps to be ignored in the results: allows to
continue even when some checks are failing.