Module: Facter::Util::Facts::Posix::VirtualDetector
- Defined in:
- lib/facter/util/facts/posix/virtual_detector.rb
Overview
Class Method Summary collapse
Class Method Details
.platform ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/facter/util/facts/posix/virtual_detector.rb', line 9 def platform @@fact_value ||= check_docker_lxc || check_freebsd || check_gce || retrieve_from_virt_what @@fact_value ||= check_vmware || check_open_vz || check_vserver || check_xen || check_other_facts @@fact_value ||= check_lspci || 'physical' @@fact_value end |