Sha256: 1097811c8f910d17ce822d0dd1dbffadb69112b75ab79dbe9f395227b2ae7e75
Contents?: true
Size: 483 Bytes
Versions: 8
Compression:
Stored size: 483 Bytes
Contents
# frozen_string_literal: true module Facts module Linux 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('Linux 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