Sha256: d790140ff1e5e8f10765423ad02332dc6d6315161ae3dd426029d3dda7eb7f4f
Contents?: true
Size: 715 Bytes
Versions: 16
Compression:
Stored size: 715 Bytes
Contents
module NewRelic class Control module Frameworks 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
16 entries across 16 versions & 2 rubygems