Sha256: 04df2e1ca4df28961a5ec82679517d07bc0d43f4fcab7d4b2e967c3b1d25e36a

Contents?: true

Size: 224 Bytes

Versions: 2

Compression:

Stored size: 224 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facter-1.5.3 lib/facter/kernel.rb
facter-1.5.2 lib/facter/kernel.rb