Class: NewRelic::Control::Frameworks::Merb
- Inherits:
-
NewRelic::Control
- Object
- NewRelic::Control
- NewRelic::Control::Frameworks::Merb
- Defined in:
- lib/new_relic/control/frameworks/merb.rb
Overview
Includes limited support for Merb
Instance Attribute Summary
Attributes included from InstanceMethods
Instance Method Summary collapse
Methods included from ClassMethods
#instance, #load_framework_class, #load_test_framework, #local_env, #new_instance, #newrelic_root, #reset
Methods included from InstanceMethods
#[], #app, #dispatcher, #framework, #init_plugin, #newrelic_root, #settings, #start_agent
Methods included from Instrumentation
#add_instrumentation, #install_instrumentation, #install_shim, #load_instrumentation_files, #load_samplers
Methods included from ServerMethods
#api_server, #convert_to_ip_address, #proxy_server, #resolve_ip_address, #server, #server_from_host
Methods included from Profiling
#profiling=, #profiling?, #profiling_available?
Instance Method Details
#env ⇒ Object
11 12 13 |
# File 'lib/new_relic/control/frameworks/merb.rb', line 11 def env @env ||= ::Merb.env end |
#init_config(options = {}) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/new_relic/control/frameworks/merb.rb', line 18 def init_config ={} ::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 ⇒ Object
14 15 16 |
# File 'lib/new_relic/control/frameworks/merb.rb', line 14 def root ::Merb.root end |