summaryrefslogtreecommitdiffstats
path: root/lib/facter/kernel.rb
blob: 5a0eb19b09860a8cd01da74fd330483212710ce6 (plain)
1
2
3
4
5
6
7
8
9
Facter.add(:kernel) do
    setcode do
        require 'rbconfig'
        case Config::CONFIG['host_os']
          when /mswin/i then 'windows'
          else Facter::Util::Resolution.exec("uname -s")
        end
    end
end