Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: edc6daafcb
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (20 sloc) 0.512 kB
class FyrehoseReporter
# options:
# - msg
# - token
def self.report(options ={})
return true unless CFG[:report_to_fyrehose]
pub = {
:token => options[:token],
:channel => CFG[:report_to_fyrehose_channel],
:type => "issue",
:message => options[:msg]
}
sock = UDPSocket.new
sock.connect(*CFG[:report_to_fyrehose].split(":"))
sock.write(pub.to_json + "\n")
sock.close
rescue Exception => e
puts "cant report to fyrehose: #{e.to_s}"
end
end
Jump to Line
Something went wrong with that request. Please try again.