Sha256: 1ccd6b5dd87371279dbcbbfc70b3f05c64bac531653bdbf5ed273ba251ad7a8d
Contents?: true
Size: 798 Bytes
Versions: 1
Compression:
Stored size: 798 Bytes
Contents
module Le module Host #! def self.new(token, local, debug, ssl, datahub_enabled, datahub_ip, datahub_port, host_id, host_name_enabled, host_name) def self.new(token, local, debug, ssl, datahub_endpoint, host_id, custom_host) Le::Host::HTTP.new(token, local, debug, ssl, datahub_endpoint, host_id, custom_host) end module InstanceMethods def formatter proc do |severity, datetime, _, msg| message = "#{datetime} " message << format_message(msg, severity) end end def format_message(message_in, severity) message_in = message_in.inspect unless message_in.is_a?(String) "severity=#{severity}, #{message_in.lstrip}" end end end end require File.join(File.dirname(__FILE__), 'host', 'http')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
le-2.5.0 | lib/le/host.rb |