Sha256: 7244b1977e1b64612a899c7896388137f642d09c1a5034d65434f8ec9ac871da
Contents?: true
Size: 482 Bytes
Versions: 5
Compression:
Stored size: 482 Bytes
Contents
module CukeQ class Reporter attr_reader :uri def initialize(uri) @uri = uri end def report(message) EM::P::HttpClient.request( :host => uri.host, :port => uri.port, :verb => "POST", :request => uri.path.empty? ? "/" : uri.path, :content => message.to_json ) rescue => e # EM raises a RuntimeError.. log self.class, "error for #{uri}: #{e.message}" end end # Reporter end # CukeQ
Version data entries
5 entries across 5 versions & 1 rubygems