Hi community, I have a problem with one of my ERB templates. I would like to display an array containing class names. But I don't want to display every class, I would like to display the top class only. If no top class exist, it should show the sub classes. So input is something like this:
class1 class1::package class1::params class1::config class2::client class2::common The output should be: class1 class2::client class2::common Currently I use a standard each on the array that display everything: <% classlist.sort.uniq.each do |item| -%> - <%= item %> <% end -%> Any ideas how to get this implemented? Kind regards Thomas -- Linux ... enjoy the ride! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAELoU1MFrTtoEYnbRKo6bvx7YTTW68zyoJctrX8OUjz1ALnJ0w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.