Sha256: 0399a39152bf8c60a30a99ec202c28dc1311aef6ab50b0a21ce264aa6f4bbb8a
Contents?: true
Size: 912 Bytes
Versions: 16
Compression:
Stored size: 912 Bytes
Contents
require 'facter/operatingsystem/base' require 'facter/operatingsystem/cumuluslinux' require 'facter/operatingsystem/linux' require 'facter/operatingsystem/sunos' require 'facter/operatingsystem/vmkernel' require 'facter/operatingsystem/windows' module Facter module Operatingsystem def self.implementation(kernel = Facter.value(:kernel)) case kernel when "Linux", "GNU/kFreeBSD" release_info = Facter::Util::Operatingsystem.os_release if release_info['NAME'] == "Cumulus Linux" Facter::Operatingsystem::CumulusLinux.new else Facter::Operatingsystem::Linux.new end when "SunOS" Facter::Operatingsystem::SunOS.new when "VMkernel" Facter::Operatingsystem::VMkernel.new when "windows" Facter::Operatingsystem::Windows.new else Facter::Operatingsystem::Base.new end end end end
Version data entries
16 entries across 16 versions & 1 rubygems