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