+1
As a by-the-way, you could also write this:
+ code = [code] unless code.is_a?(Array)
code.each do |stmt|
as:
- code.each do |stmt|
+ [code].flatten.each do |stmt|
And finally, I'm very sorry for dropping the stray remark that hijacked the
thread. T'wasn't my intent.
-- Markus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---