Module: LegacyFacter::Util::Root Private

Defined in:
lib/facter/custom_facts/util/unix_root.rb,
lib/facter/custom_facts/util/windows_root.rb

Overview

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.

API:

  • private

Class Method Summary collapse

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.

Returns:

API:

  • private



6
7
8
# File 'lib/facter/custom_facts/util/unix_root.rb', line 6

def self.root?
  Process.uid.zero?
end