On 3 February 2011 05:04, Dan Bode <d...@puppetlabs.com> wrote:

>
> Here is some code to print all of the current variable names in the scopes
> symbol table:
>
> class fooperi {
>   $foo = inline_template("<% scope.to_hash.keys.each do |k| %>
> <%= k %><% end %>")
>   notice($foo)
> }
>
For those of us with next to no ruby or knowledge on where to look inside
puppet for variables, this is brilliant! I have on occasion wondered about
this

I would love to see that in
http://docs.puppetlabs.com/guides/templating.html in the "Access to defined
tags and classes" section. I have created a ticket for that -
https://projects.puppetlabs.com/issues/6124

John

-- 
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.

Reply via email to