Class: Ring::SQA::Alarm::Exec
- Inherits:
-
Object
- Object
- Ring::SQA::Alarm::Exec
- Defined in:
- lib/ring/sqa/alarm/exec.rb
Instance Method Summary collapse
Instance Method Details
#send(opts) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ring/sqa/alarm/exec.rb', line 6 def send opts stdout = JSON.pretty_generate( { :alarm_buffer => opts[:alarm_buffer].exceeding_nodes, :nodes => opts[:nodes].all, :short => opts[:short], :long => opts[:long], :status => opts[:status], :afi => opts[:afi], }) exec stdout, CFG.exec.command, CFG.exec.arguments? rescue => error Log.error "Exec raised '#{error.class}' with message '#{error.message}'" end |