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

> class fooperi {
>   $foo = inline_template("<% scope.to_hash.keys.each do |k| %>
> <%= k %><% end %>")
>   notice($foo)
> }
>

so I have this running nicely in a file - but I'd love to have the results
sorted. Putting ".sort" at random places on the hash gives me errors. Any
pointers for a ruby newby?

Thanks

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