Sha256: 454e412ac131e50f7ca12b3fe3d6926c5b13a1da348e8eee7735fbae5790b223

Contents?: true

Size: 360 Bytes

Versions: 7

Compression:

Stored size: 360 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Linux
    class Hypervisors
      FACT_NAME = 'hypervisors'

      def call_the_resolver
        fact_value = check_docker_lxc
        Facter::ResolvedFact.new(FACT_NAME, fact_value)
      end

      def check_docker_lxc
        Facter::Resolvers::DockerLxc.resolve(:hypervisor)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
facter-4.0.29 lib/facts/linux/hypervisors.rb
facter-4.0.28 lib/facts/linux/hypervisors.rb
facter-4.0.26 lib/facts/linux/hypervisors.rb
facter-4.0.25 lib/facts/linux/hypervisors.rb
facter-4.0.24 lib/facts/linux/hypervisors.rb
facter-4.0.23 lib/facts/linux/hypervisors.rb
facter-4.0.22 lib/facts/linux/hypervisors.rb