[chef-dev] get calling recipe


Chronological Thread 
  • From: Dave Urschatz < >
  • To:
  • Subject: [chef-dev] get calling recipe
  • Date: Mon, 9 Jun 2014 13:38:17 -0700 (PDT)


Is there a way to get the name of a calling recipe?

Say cookbook1::recipe-a has:
  include_recipe "cookbook2::recipe-b"

Then in cookbook2::recipe-b we have:
 puts get_calling_recipe.name

Regards,
Dave



Archive powered by MHonArc 2.6.16.

§