Sha256: 871f9733c65c639b7fd4ad306527ef5a35aa4fb54c489f4872d6e7f159259a91

Contents?: true

Size: 222 Bytes

Versions: 17

Compression:

Stored size: 222 Bytes

Contents

# frozen_string_literal: true

module LegacyFacter
  module Util
    module Root
      def self.root?
        require 'facter/resolvers/windows/ffi/identity_ffi'
        IdentityFFI.privileged?
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
facter-4.3.1 lib/facter/custom_facts/util/windows_root.rb
facter-4.3.0 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.14 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.13 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.12 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.11 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.10 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.9 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.8 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.7 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.6 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.5 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.4 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.3 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.2 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.1 lib/facter/custom_facts/util/windows_root.rb
facter-4.2.0 lib/facter/custom_facts/util/windows_root.rb