Skip to content

Commit

Permalink
ninja add a note about this call
Browse files Browse the repository at this point in the history
Signed-off-by: Lamont Granquist <[email protected]>
  • Loading branch information
lamont-granquist committed Dec 21, 2016
1 parent 6f593e1 commit 4055d3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/chef/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,13 @@ def self.resource_for_node(short_name, node)
#
# Returns the class with the given resource_name.
#
# NOTE: Chef::Resource.resource_matching_short_name(:package) returns
# Chef::Resource::Package, while on rhel the API call
# Chef::Resource.resource_for_node(:package, node) will return
# Chef::Resource::YumPackage -- which is probably what you really
# want. This API should most likely be removed or changed to call
# resource_for_node.
#
# ==== Parameters
# short_name<Symbol>:: short_name of the resource (ie :directory)
#
Expand Down

0 comments on commit 4055d3b

Please sign in to comment.