From 97170f4e4fe043e4e475e3d032fc7df6a498280e Mon Sep 17 00:00:00 2001 From: mh Date: Thu, 31 Jan 2008 00:39:30 +0000 Subject: added puppet module to manage configgiles, removed unneeded patches for 0.24.1, moved config to manifests folder --- files/improvements/functions/slash_escape.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 files/improvements/functions/slash_escape.rb (limited to 'files/improvements/functions') 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 -- cgit v1.2.3