class Chef
class Munin
- def self.expand(template, nodes)
+ def self.expand(template, nodes, separator = " ")
nodes.map do |node|
if node.is_a?(Hash)
template
.gsub("%%%", node.tr("-", "_"))
.gsub("%%", node)
end
- end.join(" ")
+ end.join(separator)
end
end
end