diff options
Diffstat (limited to 'puppet/modules/common/lib/puppet/parser/functions/slash_escape.rb')
m--------- | puppet/modules/common | 0 | ||||
-rw-r--r-- | puppet/modules/common/lib/puppet/parser/functions/slash_escape.rb | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/puppet/modules/common b/puppet/modules/common deleted file mode 160000 -Subproject ae149624f9bc551865b93b9b7155af2de8deeb7 diff --git a/puppet/modules/common/lib/puppet/parser/functions/slash_escape.rb b/puppet/modules/common/lib/puppet/parser/functions/slash_escape.rb new file mode 100644 index 00000000..04d3b95e --- /dev/null +++ b/puppet/modules/common/lib/puppet/parser/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 + |