Puppet Function: docker::escape
- Defined in:
- lib/puppet/parser/functions/docker_run_flags.rb
- Function type:
- Ruby 3.x API
Overview
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/puppet/parser/functions/docker_run_flags.rb', line 7 newfunction(:'docker::escape', type: :rvalue) do |args| subject = args[0] escape_function = if self['facts'] && self['facts']['os']['family'] == 'windows' 'stdlib::powershell_escape' else 'stdlib::shell_escape' end call_function(escape_function, subject) end |