Sha256: dfbbdc2f843101882b43af617dbf194abbb94105cefca670de209cd3c0f78a36
Contents?: true
Size: 555 Bytes
Versions: 3
Compression:
Stored size: 555 Bytes
Contents
module AppPerfAgent module Plugin class << self def load_plugins pattern = File.join(File.dirname(__FILE__), 'plugin', '**', '*.rb') Dir.glob(pattern) do |f| begin require f rescue => e AppPerfAgent.logger.info "Error loading plugin '#{f}' : #{e}" AppPerfAgent.logger.info "#{e.backtrace.first}" end end end def plugins @plugins ||= ::AppPerfAgent::Plugin::Base .descendants .map(&:new) end 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/plugin.rb |
app_perf_agent-0.0.3 | lib/app_perf_agent/plugin.rb |
app_perf_agent-0.0.2 | lib/app_perf_agent/plugin.rb |