Sha256: bccafdeed8ddf7e617551b5fff4d00e0c0d3d4ea737b1d0bfed19244ead5b10c
Contents?: true
Size: 566 Bytes
Versions: 3
Compression:
Stored size: 566 Bytes
Contents
class NewRelic::Control::Frameworks::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
Version data entries
3 entries across 3 versions & 1 rubygems