Class: Facts::Linux::Hypervisors::Lxc

Inherits:
Object
  • Object
show all
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_resolverObject



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_lxcObject



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