Sha256: 42cfdc19aeadcd8da9f7000ad16e75c649288d7159268a49330745c1646594e3
Contents?: true
Size: 787 Bytes
Versions: 3
Compression:
Stored size: 787 Bytes
Contents
#!/usr/bin/env ruby # coding: utf-8 # # Logentries Ruby monitoring agent # Copyright 2010,2011 Logentries, Jlizard # Mark Lacomber <marklacomber@gmail.com> # require 'socket' require 'openssl' 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(key, location, local) @local_bool = local if not local @deliverer = Le::Host::HTTPS::TCPSOCKET.new(key, location) 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
le-1.9.2 | ./lib/le/host/https.rb |
le-1.9.1 | ./lib/le/host/https.rb |
le-1.8.1 | ./lib/le/host/https.rb |