X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/157d98f404bf4fb5dcdf6752f807982aaf297261..HEAD:/cookbooks/munin/libraries/expand.rb diff --git a/cookbooks/munin/libraries/expand.rb b/cookbooks/munin/libraries/expand.rb deleted file mode 100644 index 4dadd14d3..000000000 --- a/cookbooks/munin/libraries/expand.rb +++ /dev/null @@ -1,13 +0,0 @@ -class Chef - class Munin - def self.expand(template, nodes) - nodes.map do |node| - if node.is_a?(Hash) - template.gsub(/%%([^%]+)%%/) { node[Regexp.last_match[1].to_sym] } - else - template.gsub("%%%", node.tr("-", "_")).gsub("%%", node) - end - end.join(" ") - end - end -end