Class: NewRelic::Control::Frameworks::Ruby

Inherits:
NewRelic::Control show all
Defined in:
lib/new_relic/control/frameworks/ruby.rb

Overview

A control used when no framework is detected - the default.

Direct Known Subclasses

External, Rails, Sinatra

Instance Attribute Summary

Attributes included from InstanceMethods

#local_env

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 LanguageSupport::Control

included

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

#envObject



7
8
9
# File 'lib/new_relic/control/frameworks/ruby.rb', line 7

def env
  @env ||= ENV['RUBY_ENV'] || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
end

#init_config(options = {}) ⇒ Object



15
16
# File 'lib/new_relic/control/frameworks/ruby.rb', line 15

def init_config(options={})
end

#rootObject



11
12
13
# File 'lib/new_relic/control/frameworks/ruby.rb', line 11

def root
  @root ||= ENV['APP_ROOT'] || '.'
end