Class: Facts::Linux::Hypervisors::Vmware
- Inherits:
-
Object
- Object
- Facts::Linux::Hypervisors::Vmware
- Defined in:
- lib/facter/facts/linux/hypervisors/vmware.rb
Constant Summary collapse
- FACT_NAME =
'hypervisors.vmware'
Instance Method Summary collapse
- #call_the_resolver ⇒ Object
-
#initialize ⇒ Vmware
constructor
A new instance of Vmware.
Constructor Details
Instance Method Details
#call_the_resolver ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/facter/facts/linux/hypervisors/vmware.rb', line 13 def call_the_resolver if vmware? @log.debug('Vmware hypervisor detected') fact_value = {} version = Facter::Resolvers::DmiDecode.resolve(:vmware_version) fact_value[:version] = version if version && !version.empty? return Facter::ResolvedFact.new(FACT_NAME, fact_value) end @log.debug('No Vmware hypervisor detected.') [] end |