Module: Chef::Sugar::RunContext

Extended by:
RunContext
Included in:
RunContext
Defined in:
lib/chef/sugar/run_context.rb

Instance Method Summary collapse

Instance Method Details

#includes_recipe?(node, recipe_name) ⇒ Boolean Also known as: include_recipe?

Determine if the current node includes the given recipe name.

Parameters:

Returns:

  • (Boolean)

27
28
29
# File 'lib/chef/sugar/run_context.rb', line 27

def includes_recipe?(node, recipe_name)
  node.recipe?(recipe_name)
end