class Facts::Linux::Hypervisors::Lxc

Constants

FACT_NAME

Public Instance Methods

call_the_resolver() click to toggle source
# File lib/facter/facts/linux/hypervisors/lxc.rb, line 8
def call_the_resolver
  fact_value = check_lxc
  Facter::ResolvedFact.new(FACT_NAME, fact_value)
end
check_lxc() click to toggle source
# File lib/facter/facts/linux/hypervisors/lxc.rb, line 13
def check_lxc
  info = Facter::Resolvers::Containers.resolve(:hypervisor)
  info[:lxc] if info
end