Module: Facter::Util::Facts::Posix::VirtualDetector

Defined in:
lib/facter/util/facts/posix/virtual_detector.rb

Overview

Since:

  • 2.0.0

Class Method Summary collapse

Class Method Details

.platformObject

Since:

  • 2.0.0



9
10
11
12
13
14
# File 'lib/facter/util/facts/posix/virtual_detector.rb', line 9

def platform
  @fact_value ||= # rubocop:disable Naming/MemoizedInstanceVariableName
    check_docker_lxc || check_freebsd || check_gce || check_illumos_lx || \
    retrieve_from_virt_what || check_vmware || check_open_vz || check_vserver || \
    check_xen || check_other_facts || check_lspci || 'physical'
end