Class: Ring::SQA::Alarm::UDP2IRC
- Inherits:
-
Object
- Object
- Ring::SQA::Alarm::UDP2IRC
- Defined in:
- lib/ring/sqa/alarm/udp2irc.rb
Instance Method Summary collapse
Instance Method Details
#send(opts) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/ring/sqa/alarm/udp2irc.rb', line 6 def send opts short, long = opts[:short], opts[:long] irc = CFG.irc url = Paste.add long if irc.class == Array irc.each do |target| udp2irc target['password'], target['target'], short, url, target['host'], target['port'] end else udp2irc irc.password, irc.target, short, url, irc.host, irc.port end rescue => error Log.error "UDP2IRC raised '#{error.class}' with message '#{error.}'" end |