Class: Facts::Linux::Hypervisors::Lxc
- Inherits:
-
Object
- Object
- Facts::Linux::Hypervisors::Lxc
- Defined in:
- lib/facter/facts/linux/hypervisors/lxc.rb
Constant Summary collapse
- FACT_NAME =
'hypervisors.lxc'
Instance Method Summary collapse
Instance Method Details
#call_the_resolver ⇒ Object
9 10 11 12 |
# File 'lib/facter/facts/linux/hypervisors/lxc.rb', line 9 def call_the_resolver fact_value = check_lxc Facter::ResolvedFact.new(FACT_NAME, fact_value) end |
#check_lxc ⇒ Object
14 15 16 17 |
# File 'lib/facter/facts/linux/hypervisors/lxc.rb', line 14 def check_lxc info = Facter::Resolvers::Containers.resolve(:hypervisor) info[:lxc] if info end |