On May 12, 2011, at 7:56 AM, Nigel Kersten <[email protected]> wrote:
> On Thu, May 12, 2011 at 2:36 PM, Nigel Kersten <[email protected]> wrote: >> On Thu, May 12, 2011 at 5:14 AM, Luke Kanies <[email protected]> wrote: >>> On May 11, 2011, at 10:01 PM, Nigel Kersten wrote: >>> >>>> Is it possible to access the name of the calling class from inside a >>>> function? >>> >>> You should be able to use '@name'... >> >> Nope. In case I wasn't clear, it's a Puppet function that I'd like to >> make decisions based upon the class it's invoked from. > > Ahah. Brice helped me out with this one on IRC. > > It's "self.resource.name" Yeah, I had confused functions and templates. Brain now work. -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
