What is wrong with mu class?

10 views
Skip to first unread message

Sandra Schlichting

unread,
Aug 29, 2012, 11:55:21 AM8/29/12
to puppet...@googlegroups.com
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 =)

Sandra Schlichting

unread,
Aug 29, 2012, 12:07:42 PM8/29/12
to puppet...@googlegroups.com
Solved.

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

Of course =)


Reply all
Reply to author
Forward
0 new messages