Sha256: ba423b0d87a903ba9ae19e34317b93cbb5b3f3025fe566210acdbd4db948e5d9
Contents?: true
Size: 248 Bytes
Versions: 2
Compression:
Stored size: 248 Bytes
Contents
require 'facter/util/uptime' Facter.add(:uptime_seconds) do setcode { Facter::Util::Uptime.get_uptime_seconds_unix } end Facter.add(:uptime_seconds) do confine :kernel => :windows setcode { Facter::Util::Uptime.get_uptime_seconds_win } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-1.5.9 | lib/facter/uptime_seconds.rb |
facter-1.5.8 | lib/facter/uptime_seconds.rb |