diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-04-12 18:01:38 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-04-12 18:01:38 -0700 |
commit | dd93333a3fc0851a0b63ec5bf63f67ce82ea4a21 (patch) | |
tree | f98a02afa5b7ae362f4bc67f471a5315d7ede5fa /lib/chef/recipe.rb | |
parent | 84657b2e7ef92ac81d98e265db4305dfb6b5aab3 (diff) | |
download | chef-dd93333a3fc0851a0b63ec5bf63f67ce82ea4a21.tar.gz |
add the resources() dsl method to providerslcg/fix-resources-dsl-method
Custom resource actions were picking this up via delegation to
the wrapping resource, and that wiring was removed in 14, so that
API then got dropped accidentally. This should fix that back
up. It also consistently injects the resource APIs into resources
and providers both now (and consistently across core resources
and custom resources).
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/recipe.rb')
-rw-r--r-- | lib/chef/recipe.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/chef/recipe.rb b/lib/chef/recipe.rb index 967703b629..f00b211630 100644 --- a/lib/chef/recipe.rb +++ b/lib/chef/recipe.rb @@ -1,7 +1,7 @@ #-- # Author:: Adam Jacob (<adam@chef.io>) # Author:: Christopher Walters (<cw@chef.io>) -# Copyright:: Copyright 2008-2017, Chef Software Inc. +# Copyright:: Copyright 2008-2018, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -66,12 +66,6 @@ class Chef run_context.node end - # Used by the DSL to look up resources when executing in the context of a - # recipe. - def resources(*args) - run_context.resource_collection.find(*args) - end - # This was moved to Chef::Node#tag, redirecting here for compatibility def tag(*tags) run_context.node.tag(*tags) |