Class: Facts::Linux::Virtual
- Inherits:
-
Object
- Object
- Facts::Linux::Virtual
- Defined in:
- lib/facter/facts/linux/virtual.rb
Constant Summary collapse
- FACT_NAME =
'virtual'
Instance Method Summary collapse
- #call_the_resolver ⇒ Object
-
#initialize ⇒ Virtual
constructor
A new instance of Virtual.
Constructor Details
Instance Method Details
#call_the_resolver ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/facter/facts/linux/virtual.rb', line 12 def call_the_resolver @log.debug('Linux Virtual Resolver') fact_value = Facter::Util::Facts::Posix::VirtualDetector.platform @log.debug("Fact value is: #{fact_value}") Facter::ResolvedFact.new(FACT_NAME, fact_value) end |