Module: LegacyFacter::Util::Root Private
- Defined in:
- lib/facter/custom_facts/util/unix_root.rb,
lib/facter/custom_facts/util/windows_root.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .root? ⇒ Boolean private
Class Method Details
.root? ⇒ Boolean
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.
6 7 8 |
# File 'lib/facter/custom_facts/util/unix_root.rb', line 6 def self.root? Process.uid.zero? end |