class NewRelic::Control::Frameworks::Merb

Includes limited support for Merb

Public Instance Methods

env() click to toggle source
# File lib/new_relic/control/frameworks/merb.rb, line 10
def env
  @env ||= ::Merb.env
end
init_config(options={}) click to toggle source
# File lib/new_relic/control/frameworks/merb.rb, line 17
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
root() click to toggle source
# File lib/new_relic/control/frameworks/merb.rb, line 13
def root
  ::Merb.root
end