Puppet Function: docker_plugin_remove_flags
- Defined in:
- lib/puppet/parser/functions/docker_plugin_remove_flags.rb
- Function type:
- Ruby 3.x API
Overview
Transforms a hash into a string of docker plugin remove flags
9 10 11 12 13 14 15 |
# File 'lib/puppet/parser/functions/docker_plugin_remove_flags.rb', line 9 newfunction(:docker_plugin_remove_flags, type: :rvalue) do |args| opts = args[0] || {} flags = [] flags << '--force' if opts['force_remove'] == true flags << "'#{opts['plugin_name']}'" if opts['plugin_name'] && opts['plugin_name'].to_s != 'undef' flags.flatten.join(' ') end |