Sha256: 0012017c50aafd75d99aba3c5a1508f3ec7b4cafd1d34ee9b1bef427f830f63b
Contents?: true
Size: 816 Bytes
Versions: 3
Compression:
Stored size: 816 Bytes
Contents
require_relative "app_perf_agent/types" require_relative "app_perf_agent/logger" require_relative "app_perf_agent/plugin" require_relative "app_perf_agent/dispatcher" require_relative "app_perf_agent/worker" module AppPerfAgent DEFAULTS = { environment: nil, daemon: false, host: 'localhost:5000', ssl: false, license_key: '', pidfile: File.dirname(__FILE__) + "/../app_perf_agent.pid" } def self.hostname @hostname ||= Socket.gethostname end def self.options @options ||= DEFAULTS.dup end def self.options=(opts) @options = opts end def self.logger AppPerfAgent::Logger.logger end def self.logger=(log) AppPerfAgent::Logger.logger = log end class << self def load AppPerfAgent::Agent::Plugin.load_plugins end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
app_perf_agent-0.0.4 | lib/app_perf_agent.rb |
app_perf_agent-0.0.3 | lib/app_perf_agent.rb |
app_perf_agent-0.0.2 | lib/app_perf_agent.rb |