class NewRelic::Control::Frameworks::Ruby
A control used when no framework is detected - the default.
Public Instance Methods
env()
click to toggle source
# File lib/new_relic/control/frameworks/ruby.rb, line 10 def env @env ||= ENV['NEW_RELIC_ENV'] || ENV['RUBY_ENV'] || ENV['RAILS_ENV'] || ENV['APP_ENV'] || ENV['RACK_ENV'] || 'development' end
init_config(options = {})
click to toggle source
# File lib/new_relic/control/frameworks/ruby.rb, line 19 def init_config(options = {}) end
root()
click to toggle source
# File lib/new_relic/control/frameworks/ruby.rb, line 15 def root @root ||= ENV['APP_ROOT'] || '.' end