Sha256: 156b8a0e4996c163daff167688d43d4e2cdfa082e1f96725ff64d0343f11b8ab
Contents?: true
Size: 451 Bytes
Versions: 2
Compression:
Stored size: 451 Bytes
Contents
# frozen_string_literal: true module Facter module Windows class HypervisorsVmware FACT_NAME = 'hypervisors.vmware' def call_the_resolver fact_value = {} if vmware? ResolvedFact.new(FACT_NAME, fact_value) end private def vmware? Resolvers::Virtualization.resolve(:virtual) == 'vmware' || Resolvers::DMIBios.resolve(:manufacturer) == 'VMware, Inc.' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.8.pre | lib/facts/windows/hypervisors/vmware.rb |
facter-4.0.7.pre | lib/facts/windows/hypervisors/vmware.rb |