Puppet Function: ensure_link
- Defined in:
- puppet/modules/wmflib/lib/puppet/parser/functions/ensure_link.rb
- Function type:
- Ruby 3.x API
Overview
24 25 26 27 28 29 30 31 |
# File 'puppet/modules/wmflib/lib/puppet/parser/functions/ensure_link.rb', line 24 newfunction(:ensure_link, :type => :rvalue, :arity => 1) do |args| ensure_param = args.first case ensure_param when 'present', 'true', true then 'link' when 'absent', 'false', false then ensure_param else fail(ArgumentError, "ensure_link(): invalid argument: '#{ensure_param}'.") end end |