Method: Chef::Mixin::WhyRun::ResourceRequirements#run

Defined in:
lib/chef/mixin/why_run.rb

#run(action) ⇒ Object

Run the assertion and assumption logic.



320
321
322
323
324
325
326
327
328
# File 'lib/chef/mixin/why_run.rb', line 320

def run(action)
  @assertions[action.to_sym].each do |a|
    a.run(action, events, @resource)
    if a.assertion_failed? && a.block_action?
      @blocked_actions << action
      break
    end
  end
end