Sha256: 98ae379f6eeaadb386fe79b916f23d39721a2b150540fef64f48501ab0103db2
Contents?: true
Size: 487 Bytes
Versions: 8
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true module Facts module Freebsd class Virtual FACT_NAME = 'virtual' def initialize @log = Facter::Log.new(self) @virtual = Facter::Util::Facts::VirtualDetector.new end def call_the_resolver @log.debug('FreeBSD Virtual Resolver') fact_value = @virtual.platform @log.debug("Fact value is: #{fact_value}") Facter::ResolvedFact.new(FACT_NAME, fact_value) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems