Sha256: a6a924a300a9483ff83f862df79c80ab6d757284743a50476e5535058b18f8e6
Contents?: true
Size: 735 Bytes
Versions: 1
Compression:
Stored size: 735 Bytes
Contents
#!/usr/bin/env ruby # coding: utf-8 # # Logentries Ruby monitoring agent # Copyright 2010,2011 Logentries, Jlizard # Mark Lacomber <marklacomber@gmail.com> # require File.join(File.dirname(__FILE__), 'https', 'tcp') module Le module Host class HTTPS include Le::Host::HelperMethods attr_reader :deliverer, :local_bool def initialize(token, local) @local_bool = local if not local @deliverer = Le::Host::HTTPS::TCPSOCKET.new(token) end end def write(message) if @local_bool puts message else # Deliver the message to logentries via TCP @deliverer.deliver(message) end end def close nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
le-2.0 | ./lib/le/host/https.rb |