Sha256: b4760c0390c238abe723519916b0ee9f42ca41c7ea77b133726029f7607f304b
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
Facter.add('boottime') do setcode do Time.at(Time.now.to_i - Facter.value('uptime_seconds').to_i) end end Facter.add('kernelarguments') do setcode do if File.readable?('/proc/cmdline') Hash[File.read('/proc/cmdline').split(' ').collect{|i| key, value = i.split('=', 2) [key.gsub('.','-'), value] }] else nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onering-report-plugins-0.0.28 | lib/facter/onering_properties_system.rb |