class Facts::Linux::Hypervisors::SystemdNspawn

Constants

FACT_NAME

Public Instance Methods

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