diff options
author | david <david@f03ff2f1-f02d-0410-970d-b9634babeaa1> | 2007-08-02 09:28:47 +0000 |
---|---|---|
committer | david <david@f03ff2f1-f02d-0410-970d-b9634babeaa1> | 2007-08-02 09:28:47 +0000 |
commit | 237d7fa76533bf504bbec2a57cad7c96410688ec (patch) | |
tree | df0ce22073e80783ff0ed61b2086096554c92a8b /files/functions/slash_escape.rb | |
parent | d8ac4de367a04728813564f3f7ed3a365f2050bc (diff) | |
download | puppet-common-237d7fa76533bf504bbec2a57cad7c96410688ec.tar.gz puppet-common-237d7fa76533bf504bbec2a57cad7c96410688ec.tar.bz2 |
moved puppet functions to common::puppetmaster
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@154 f03ff2f1-f02d-0410-970d-b9634babeaa1
Diffstat (limited to 'files/functions/slash_escape.rb')
-rw-r--r-- | files/functions/slash_escape.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/files/functions/slash_escape.rb b/files/functions/slash_escape.rb new file mode 100644 index 0000000..04d3b95 --- /dev/null +++ b/files/functions/slash_escape.rb @@ -0,0 +1,7 @@ +# escape slashes in a String +module Puppet::Parser::Functions + newfunction(:slash_escape, :type => :rvalue) do |args| + args[0].gsub(/\//, '\\/') + end +end + |