diff options
author | Tyler Ball <tyleraball@gmail.com> | 2014-10-30 11:27:18 -0700 |
---|---|---|
committer | Tyler Ball <tyleraball@gmail.com> | 2014-10-30 11:27:18 -0700 |
commit | 88595b465c58362f71aabeee16be0b3b1d30b927 (patch) | |
tree | 9c3f99eabf95d8b26a25a30d09cc19e405762131 | |
parent | d3a2281b77bea82d90e58d8143ce6db068181a09 (diff) | |
parent | 8db3898b2c918a11c4c17e82b4dbe64611c3efb9 (diff) | |
download | chef-88595b465c58362f71aabeee16be0b3b1d30b927.tar.gz |
Merge pull request #2322 from opscode/tball/doc-fix
Fixing documentation error (leftovers, no longer correct)
-rw-r--r-- | lib/chef/resource_collection.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/resource_collection.rb b/lib/chef/resource_collection.rb index 30520cff7e..4fd6fcad24 100644 --- a/lib/chef/resource_collection.rb +++ b/lib/chef/resource_collection.rb @@ -43,8 +43,6 @@ class Chef # @param resource [Chef::Resource] The resource to insert # @param resource_type [String,Symbol] If known, the resource type used in the recipe, Eg `package`, `execute` # @param instance_name [String] If known, the recource name as used in the recipe, IE `vim` in `package 'vim'` - # @param at_location [Integer] If know, a location in the @resource_list to insert resource - # If you know the at_location but not the resource_type or instance_name, pass them in as nil # This method is meant to be the 1 insert method necessary in the future. It should support all known use cases # for writing into the ResourceCollection. def insert(resource, opts={}) @@ -60,7 +58,7 @@ class Chef # @deprecated def []=(index, resource) - Chef::Log.warn("`[]=` is deprecated, use `insert` with the `at_location` parameter") + Chef::Log.warn("`[]=` is deprecated, use `insert` (which only inserts at the end)") resource_list[index] = resource resource_set.insert_as(resource) end |