Sha256: 2697b8158f88f41a3b9950905a44842be3c4bd35155ad3845fc69eb338b20f65
Contents?: true
Size: 431 Bytes
Versions: 1
Compression:
Stored size: 431 Bytes
Contents
require 'remon/helper' module Remon module Metrics class Yum include Helper def initialize(timeout: 240) @timeout = timeout end def updates_available script = File.expand_path "#{__dir__}/../scripts/yum-status" out = cmd "timeout -k 60s #{@timeout}s python #{script} 2>/dev/null", return_output: true, shell: true count = out.chomp.to_i end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
remon-0.1.0 | lib/remon/metrics/yum.rb |