Sha256: cc229d6339c6d36161326feb20becfcd0fb7ca1bfd05328ce730e9d7f050c34d

Contents?: true

Size: 379 Bytes

Versions: 45

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

45 entries across 45 versions & 2 rubygems

Version Path
onering-report-0.6.13 lib/facter/onering_properties_system.rb
onering-report-0.6.12 lib/facter/onering_properties_system.rb
onering-report-0.6.11 lib/facter/onering_properties_system.rb
onering-report-0.6.10 lib/facter/onering_properties_system.rb
onering-report-0.6.9 lib/facter/onering_properties_system.rb
onering-report-0.6.8 lib/facter/onering_properties_system.rb
onering-report-0.6.7 lib/facter/onering_properties_system.rb
onering-report-0.6.6 lib/facter/onering_properties_system.rb
onering-report-0.6.5 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.65 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.64 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.63 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.62 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.61 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.60 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.59 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.58 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.57 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.56 lib/facter/onering_properties_system.rb
onering-report-plugins-0.0.55 lib/facter/onering_properties_system.rb