Sha256: a75f05c815cc83f9b014d21314a7ebfecd77913adf862195869d69f95f37e83f

Contents?: true

Size: 118 Bytes

Versions: 36

Compression:

Stored size: 118 Bytes

Contents

require 'win32/security'

module Facter::Util::Root
  def self.root?
    Win32::Security.elevated_security?
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
facter-2.4.6 lib/facter/util/windows_root.rb
facter-2.4.6-x86-mingw32 lib/facter/util/windows_root.rb
facter-2.4.6-x64-mingw32 lib/facter/util/windows_root.rb
facter-2.4.6-universal-darwin lib/facter/util/windows_root.rb
facter-2.4.5 lib/facter/util/windows_root.rb
facter-2.4.5-x86-mingw32 lib/facter/util/windows_root.rb
facter-2.4.5-x64-mingw32 lib/facter/util/windows_root.rb
facter-2.4.5-universal-darwin lib/facter/util/windows_root.rb
facter-2.4.4 lib/facter/util/windows_root.rb
facter-2.4.4-x86-mingw32 lib/facter/util/windows_root.rb
facter-2.4.4-x64-mingw32 lib/facter/util/windows_root.rb
facter-2.4.4-universal-darwin lib/facter/util/windows_root.rb
facter-2.4.3 lib/facter/util/windows_root.rb
facter-2.4.3-x86-mingw32 lib/facter/util/windows_root.rb
facter-2.4.3-x64-mingw32 lib/facter/util/windows_root.rb
facter-2.4.3-universal-darwin lib/facter/util/windows_root.rb
facter-2.4.1 lib/facter/util/windows_root.rb
facter-2.4.1-x86-mingw32 lib/facter/util/windows_root.rb
facter-2.4.1-x64-mingw32 lib/facter/util/windows_root.rb
facter-2.4.1-universal-darwin lib/facter/util/windows_root.rb