Method: Puppet::Util::Windows::AccessControlEntry#inspect

Defined in:
lib/puppet/util/windows/access_control_entry.rb

#inspectObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



64
65
66
67
68
69
70
71
72
73
74
# File 'lib/puppet/util/windows/access_control_entry.rb', line 64

def inspect
  inheritance = ''.dup
  inheritance << '(I)' if inherited?
  inheritance << '(OI)' if object_inherit?
  inheritance << '(CI)' if container_inherit?
  inheritance << '(IO)' if inherit_only?

  left = "#{sid_to_name(sid)}:#{inheritance}"
  left = left.ljust(45)
  "#{left} 0x#{mask.to_s(16)}"
end