Title: Message Title
Felix Frank commented on an issue
Puppet / Bug PUP-2318
Ruby open classes functionality breaks when used in ERB templates
{noformat}
<%
class Array
 def to_sudo
  self.map{|i| "/some/path/to/prepend/*/#{i}" }.join(',')
 end
end

command_list1 = %w (command1.sh command2.sh command3.sh).to_sudo
command_list2 = %w (command4.sh command5.sh command6.sh).to_sudo
%>

Cmnd_Alias CMD1 = <%= command_list1 %>
Cmnd_Alias CMD2 = <%= command_list2 %>
{noformat}

The ERB te...


--
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to