Method: Chef::ResourceCollection::ResourceList#execute_each_resource
- Defined in:
- lib/chef/resource_collection/resource_list.rb
#execute_each_resource ⇒ Object
FIXME: yard with @yield
92 93 94 95 96 97 98 |
# File 'lib/chef/resource_collection/resource_list.rb', line 92 def execute_each_resource @iterator = ResourceCollection::StepableIterator.for_collection(@resources) @iterator.each_with_index do |resource, idx| @insert_after_idx = idx yield resource end end |