Sha256: 8c9857f950095c4673a88b087b18490ebd15fb92a064d4e3bbe1b901d8f5bd5b
Contents?: true
Size: 453 Bytes
Versions: 99
Compression:
Stored size: 453 Bytes
Contents
# Fact: kernel # # Purpose: Returns the operating system's name. # # Resolution: # Uses Ruby's RbConfig to find host_os, if that is a Windows derivative, then # returns `windows`, otherwise returns the output of `uname -s` verbatim. # # Caveats: # Facter.add(:kernel) do setcode do require 'facter/util/config' if Facter::Util::Config.is_windows? 'windows' else Facter::Core::Execution.exec("uname -s") end end end
Version data entries
99 entries across 99 versions & 2 rubygems