Sha256: 63f228f5d6be34885f6f9a0469f99cc4fb51e52fb2b45f993869587040424fc2
Contents?: true
Size: 757 Bytes
Versions: 22
Compression:
Stored size: 757 Bytes
Contents
module NewRelic class Control module Frameworks # Includes limited support for Merb class Merb < NewRelic::Control def env @env ||= ::Merb.env end def root ::Merb.root end def to_stdout(msg) Merb.logger.info("NewRelic ~ " + msg) rescue Exception => e STDOUT.puts "NewRelic ~ " + msg end def init_config options={} ::Merb::Plugins.add_rakefiles File.join(newrelic_root,"lib/tasks/all.rb") # Merb gives you a Merb::Plugins.config hash...feel free to put your stuff in your piece of it ::Merb::Plugins.config[:newrelic] = { :config => self } end end end end end
Version data entries
22 entries across 22 versions & 2 rubygems