Sha256: 165c39c08c04c94d2020b79a42f07dd6ead4951ce67af1ff528e5b2adc53d7fd

Contents?: true

Size: 364 Bytes

Versions: 5

Compression:

Stored size: 364 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, value]
      }]
    else
      nil
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
onering-report-plugins-0.0.27 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.26 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.25 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.24 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.23 lib/facter/onering_properties_system.rb