Sha256: 32588bf854e7590306aa19295ec8302e0084075bc2137c9206c2570ad65ee50d
Contents?: true
Size: 262 Bytes
Versions: 2
Compression:
Stored size: 262 Bytes
Contents
Facter.add(:kernel) do setcode do require 'rbconfig' case Config::CONFIG['host_os'] when /mswin|win32|dos|cygwin|mingw/i 'windows' else Facter::Util::Resolution.exec("uname -s") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-1.5.9 | lib/facter/kernel.rb |
facter-1.5.8 | lib/facter/kernel.rb |