Module: Chef::DSL::IncludeRecipe

Included in:
Recipe, Provider::LWRPBase
Defined in:
lib/chef/dsl/include_recipe.rb

Instance Method Summary collapse

Instance Method Details

#include_recipe(*recipe_names) ⇒ Object



25
26
27
# File 'lib/chef/dsl/include_recipe.rb', line 25

def include_recipe(*recipe_names)
  run_context.include_recipe(*recipe_names, current_cookbook: cookbook_name)
end

#load_recipe(recipe_name) ⇒ Object



29
30
31
# File 'lib/chef/dsl/include_recipe.rb', line 29

def load_recipe(recipe_name)
  run_context.load_recipe(recipe_name, current_cookbook: cookbook_name)
end