Method: Chef::ResourceCollection#execute_each_resource

Defined in:
lib/chef/resource_collection.rb

#execute_each_resource(&resource_exec_block) ⇒ Object



90
91
92
93
94
95
96
# File 'lib/chef/resource_collection.rb', line 90

def execute_each_resource(&resource_exec_block)
  @iterator = StepableIterator.for_collection(@resources)
  @iterator.each_with_index do |resource, idx|
    @insert_after_idx = idx
    yield resource
  end
end