Sha256: 4d4b28ad38f4192b379d546e5e1f710e73e7a3be40371c779442abe63ea14e1f

Contents?: true

Size: 74 Bytes

Versions: 127

Compression:

Stored size: 74 Bytes

Contents

module Facter::Util::Root
  def self.root?
    Process.uid == 0
  end
end

Version data entries

127 entries across 127 versions & 2 rubygems

Version Path
facter-2.5.7 lib/facter/util/unix_root.rb
facter-2.5.7-x86-mingw32 lib/facter/util/unix_root.rb
facter-2.5.7-x64-mingw32 lib/facter/util/unix_root.rb
facter-2.5.7-universal-darwin lib/facter/util/unix_root.rb
facter-2.5.6-x86-mingw32 lib/facter/util/unix_root.rb
facter-2.5.6-x64-mingw32 lib/facter/util/unix_root.rb
facter-2.5.6-universal-darwin lib/facter/util/unix_root.rb
facter-2.5.6 lib/facter/util/unix_root.rb
facter-2.5.5-x86-mingw32 lib/facter/util/unix_root.rb
facter-2.5.5-x64-mingw32 lib/facter/util/unix_root.rb
facter-2.5.5-universal-darwin lib/facter/util/unix_root.rb
facter-2.5.5 lib/facter/util/unix_root.rb
facter-2.5.4-x86-mingw32 lib/facter/util/unix_root.rb
facter-2.5.4-x64-mingw32 lib/facter/util/unix_root.rb
facter-2.5.4-universal-darwin lib/facter/util/unix_root.rb
facter-2.5.4 lib/facter/util/unix_root.rb
bolt-0.24.0 vendored/facter/lib/facter/util/unix_root.rb
bolt-0.23.0 vendored/facter/lib/facter/util/unix_root.rb
bolt-0.22.0 vendored/facter/lib/facter/util/unix_root.rb
bolt-0.21.8 vendored/facter/lib/facter/util/unix_root.rb