summaryrefslogtreecommitdiff
path: root/lib/chef/resource_collection
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-10-17 15:27:16 -0500
committertyler-ball <tyleraball@gmail.com>2014-10-17 15:27:16 -0500
commited7a6d2dead738a99ebcb1782d29ca89924093cc (patch)
tree6b2e216604dbd6df9db7ca5f4c17c94300e538eb /lib/chef/resource_collection
parent335072475b38df2550dc78ad3f4a340dfc908ece (diff)
downloadchef-ed7a6d2dead738a99ebcb1782d29ca89924093cc.tar.gz
1) No longer allowing multiple args passed to ResourceCollection#<< 2) removing ResourceCollection#insert_at
Diffstat (limited to 'lib/chef/resource_collection')
-rw-r--r--lib/chef/resource_collection/resource_list.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/chef/resource_collection/resource_list.rb b/lib/chef/resource_collection/resource_list.rb
index 56bf89f1e4..e083cc0a9f 100644
--- a/lib/chef/resource_collection/resource_list.rb
+++ b/lib/chef/resource_collection/resource_list.rb
@@ -58,17 +58,6 @@ class Chef
end
end
- # @param index [Integer] location in the array to insert the resources
- # @param resources [Array of Chef::Resource] Resources to insert
- # Locate the index indicated and insert all resources, pushing any remaining resources further down in the array.
- def insert_at(index, *resources)
- resources.each do |resource|
- is_chef_resource!(resource)
- end
- @resources.insert(index, *resources)
- @insert_after_idx += resources.size unless @insert_after_idx.nil?
- end
-
# @deprecated - can be removed when it is removed from resource_collection.rb
def []=(index, resource)
@resources[index] = resource
@@ -88,7 +77,6 @@ class Chef
end
end
- # so far, and then move that logic up into the ResourceCollection class to simplify this class
def execute_each_resource(&resource_exec_block)
@iterator = ResourceCollection::StepableIterator.for_collection(@resources)
@iterator.each_with_index do |resource, idx|