Sha256: dcf4ac37aa9bfe6477a539aedee13d0a1a0d5c886613067ad6687e66a4f0987a

Contents?: true

Size: 458 Bytes

Versions: 31

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Linux
    class Virtual
      FACT_NAME = 'virtual'

      def initialize
        @log = Facter::Log.new(self)
      end

      def call_the_resolver
        @log.debug('Linux Virtual Resolver')
        fact_value = Facter::Util::Facts::Posix::VirtualDetector.platform
        @log.debug("Fact value is: #{fact_value}")

        Facter::ResolvedFact.new(FACT_NAME, fact_value)
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
facter-4.2.10 lib/facter/facts/linux/virtual.rb
facter-4.2.9 lib/facter/facts/linux/virtual.rb
facter-4.2.8 lib/facter/facts/linux/virtual.rb
facter-4.2.7 lib/facter/facts/linux/virtual.rb
facter-4.2.6 lib/facter/facts/linux/virtual.rb
facter-4.2.5 lib/facter/facts/linux/virtual.rb
facter-4.2.4 lib/facter/facts/linux/virtual.rb
facter-4.2.3 lib/facter/facts/linux/virtual.rb
facter-4.2.2 lib/facter/facts/linux/virtual.rb
facter-4.2.1 lib/facter/facts/linux/virtual.rb
facter-4.2.0 lib/facter/facts/linux/virtual.rb