On Wed, Feb 2, 2011 at 9:47 AM, Rich Rauenzahn <rraue...@gmail.com> wrote:
> I'd like to include similar information that notice() spits out in a > file I am generating -- basically so that anyone looking at the > generated file (actually a file fragment) could trace it back to the > class that is generating the entry. > Are you generating it with a template? One option is to turn on VCS tags such as $Id$ and embed that info in a comment in your erb template, as often being able to trace the VCS repo path is faster than dereferencing classes and environments to work out where the actual file is. > > Using $name within the file fragment is the closest I am getting to > what I want -- is there anything better? > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.