- From: Noah Kantrowitz <
>
- To:
- Subject: [chef] Re: cookbook name as an attribute
- Date: Mon, 2 Dec 2013 11:01:38 -0800
On Dec 2, 2013, at 9:11 AM, Tim Cook
<
>
wrote:
>
I am trying to pass the cookbook name to the logger via a library and have
>
not been able to figure out how to pull that attribute, does anyone know
>
how a cookbook calls its self in the form of an attribute ?
Within the context of a recipe or provider you can use #cookbook_name (be
warned it is sometimes a Symbol instead of a String). Within a library method
you can't get to it though, so you would need to pass it in as a parameter.
--Noah
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
Archive powered by MHonArc 2.6.16.