Sha256: fe3570f5b19a5e3ffe8cbb62765e5e6bdfc34db031f0bae89673a6cd9d776022
Contents?: true
Size: 453 Bytes
Versions: 5
Compression:
Stored size: 453 Bytes
Contents
# frozen_string_literal: true module Facts module Openbsd class IsVirtual FACT_NAME = 'is_virtual' def call_the_resolver fact_value = Facter::Util::Facts::Posix::VirtualDetector.platform Facter::ResolvedFact.new(FACT_NAME, check_if_virtual(fact_value)) end private def check_if_virtual(found_vm) Facter::Util::Facts::PHYSICAL_HYPERVISORS.count(found_vm).zero? end end end end
Version data entries
5 entries across 5 versions & 1 rubygems