Puppet Function: mode2umask
- Defined in:
- modules/git/lib/puppet/parser/functions/mode2umask.rb
- Function type:
- Ruby 3.x API
Overview
3 4 5 6 7 |
# File 'modules/git/lib/puppet/parser/functions/mode2umask.rb', line 3 newfunction(:mode2umask, type: :rvalue, arity: 1) do |arguments| value = arguments[0] mask = (value.to_i(8) & 0o0777) ^ 0o0777 return format('%03o', mask) end |