diff options
author | Kapil Chouhan <kapil.chouhan@msystechnologies.com> | 2018-11-22 11:59:09 +0000 |
---|---|---|
committer | Kapil Chouhan <kapil.chouhan@msystechnologies.com> | 2018-11-29 12:57:12 +0000 |
commit | 321086f8e5f097e96d3eb59c2f292ab67ce41d48 (patch) | |
tree | 9378f22273e7eb72bedb383c6b03f17740d20391 /lib/chef/recipe.rb | |
parent | 5c436ac98fd9a5dd78e243616123650217c90419 (diff) | |
download | chef-321086f8e5f097e96d3eb59c2f292ab67ce41d48.tar.gz |
now user can use tagged method in both only_if and not_if
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
Diffstat (limited to 'lib/chef/recipe.rb')
-rw-r--r-- | lib/chef/recipe.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/chef/recipe.rb b/lib/chef/recipe.rb index f00b211630..209b7faa74 100644 --- a/lib/chef/recipe.rb +++ b/lib/chef/recipe.rb @@ -71,21 +71,6 @@ class Chef run_context.node.tag(*tags) end - # Returns true if the node is tagged with *all* of the supplied +tags+. - # - # === Parameters - # tags<Array>:: A list of tags - # - # === Returns - # true<TrueClass>:: If all the parameters are present - # false<FalseClass>:: If any of the parameters are missing - def tagged?(*tags) - tags.each do |tag| - return false unless run_context.node.tags.include?(tag) - end - true - end - # Removes the list of tags from the node. # # === Parameters |