Sha256: 8692641d2f0e2e085dac511adc4af487c8a799534c719183edd6218003ca2e9b
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
Facter.add(:kernelrelease) do setcode 'uname -r' end Facter.add(:kernelrelease) do confine :kernel => :aix setcode 'oslevel -s' end Facter.add(:kernelrelease) do confine :kernel => %{windows} setcode do require 'win32ole' version = "" connection_string = "winmgmts://./root/cimv2" wmi = WIN32OLE.connect(connection_string) wmi.ExecQuery("SELECT Version from Win32_OperatingSystem").each { |ole| version = "#{ole.Version}" break } version end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facter-1.5.2 | lib/facter/kernelrelease.rb |