Class: Ring::SQA::MTR
- Inherits:
-
Object
- Object
- Ring::SQA::MTR
- Defined in:
- lib/ring/sqa/mtr.rb
Constant Summary collapse
- BIN =
'mtr'
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run(host) ⇒ Object
9 10 11 |
# File 'lib/ring/sqa/mtr.rb', line 9 def self.run host MTR.new.run host end |
Instance Method Details
#run(host, args = nil) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/ring/sqa/mtr.rb', line 13 def run host, args=nil Timeout::timeout(@timeout) do args ||= CFG.mtr.args.split(' ') mtr host, args end rescue Timeout::Error "MTR runtime exceeded #{@timeout}s" end |