Sha256: e19ed0571f78adb40807a36afc5ba719095d1ce29169bfa86afa8d2664aad57d
Contents?: true
Size: 527 Bytes
Versions: 31
Compression:
Stored size: 527 Bytes
Contents
# frozen_string_literal: true module Facts module Windows module Hypervisors class Vmware FACT_NAME = 'hypervisors.vmware' def call_the_resolver fact_value = {} if vmware? Facter::ResolvedFact.new(FACT_NAME, fact_value) end private def vmware? Facter::Resolvers::Windows::Virtualization.resolve(:virtual) == 'vmware' || Facter::Resolvers::DMIBios.resolve(:manufacturer) == 'VMware, Inc.' end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems