./lib/le/host/https.rb in le-1.9.2 vs ./lib/le/host/https.rb in le-2.0
- old
+ new
@@ -5,25 +5,22 @@
# 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)
+ def initialize(token, local)
@local_bool = local
if not local
- @deliverer = Le::Host::HTTPS::TCPSOCKET.new(key, location)
+ @deliverer = Le::Host::HTTPS::TCPSOCKET.new(token)
end
end
def write(message)