blob: 66f21cea2e3cd45449fae04d6503953e7e8e4869 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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
|