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

Version Path
facter-4.1.1 lib/facter/facts/freebsd/virtual.rb
facter-4.1.0 lib/facter/facts/freebsd/virtual.rb
facter-4.0.52 lib/facter/facts/freebsd/virtual.rb
facter-4.0.51 lib/facter/facts/freebsd/virtual.rb
facter-4.0.50 lib/facter/facts/freebsd/virtual.rb
facter-4.0.49 lib/facter/facts/freebsd/virtual.rb
facter-4.0.48 lib/facter/facts/freebsd/virtual.rb
facter-4.0.47 lib/facter/facts/freebsd/virtual.rb