FAQ
Hi,

If I write the following in a template

directories="<% backupDirList.each do |dir| -%><%= dir %> <% end -%>"

then it will output

directories="/appl /etc /usr/local "

Question

How do I print the backupDirList array, so it doesn't end with a blank
space?

Best regards,
Sandra =)

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/crWCaGLzqAIJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

  • Sandra Schlichting at Aug 29, 2012 at 4:07 pm
    Solved.

    directories="<%= backupDirList.join(" ") %>"

    Of course =)


    --
    You received this message because you are subscribed to the Google Groups "Puppet Users" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/yJvpD1K7AiQJ.
    To post to this group, send email to puppet-users@googlegroups.com.
    To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedAug 29, '12 at 3:55p
activeAug 29, '12 at 4:07p
posts2
users1
websitepuppetlabs.com

1 user in discussion

Sandra Schlichting: 2 posts

People

Translate

site design / logo © 2022 Grokbase