Module: Puppet::Parser::Functions
- Defined in:
- lib/puppet/parser/functions/windows_msi_installargs.rb,
lib/puppet/parser/functions/uri_host_from_string.rb,
lib/puppet/parser/functions/windows_native_path.rb
Instance Method Summary collapse
-
#windows_native_path ⇒ Object
Windows native path.
Instance Method Details
#windows_native_path ⇒ Object
Returns Windows native path.
3 4 5 6 7 8 9 10 |
# File 'lib/puppet/parser/functions/windows_native_path.rb', line 3 newfunction(:windows_native_path, arity: 1, type: :rvalue, doc: <<-EOS @return Return a windows native path EOS ) do |args| path = args[0] return path.gsub(%r{\/\s}, ' ').tr('/', '\\') end |