diff options
author | mh <mh@immerda.ch> | 2008-01-31 00:39:30 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-01-31 00:39:30 +0000 |
commit | 97170f4e4fe043e4e475e3d032fc7df6a498280e (patch) | |
tree | 904bec03a7bf5a7888355eacdfe67a9e1685a404 /files/improvements/functions | |
parent | c138aa689d9726c486e62684ad5de5d6b1d3674a (diff) |
added puppet module to manage configgiles, removed unneeded patches for 0.24.1, moved config to manifests folder
Diffstat (limited to 'files/improvements/functions')
-rw-r--r-- | files/improvements/functions/slash_escape.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/files/improvements/functions/slash_escape.rb b/files/improvements/functions/slash_escape.rb new file mode 100644 index 0000000..70cd892 --- /dev/null +++ b/files/improvements/functions/slash_escape.rb @@ -0,0 +1,6 @@ +# escape slashes in a String +module Puppet::Parser::Functions + newfunction(:slash_escape, :type => :rvalue) do |args| + args[0].gsub(/\//, '\\/') + end +end |