Class: TingYun::Frameworks::Ruby

Inherits:
Framework show all
Defined in:
lib/ting_yun/frameworks/ruby.rb

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, #reset

Methods included from InstanceMethods

#[], #configure_agent, #determine_env, #dispatcher, #framework, #init_plugin, #start_agent

Methods included from Instrumentation

#add_instrumentation, #detect_dependencies, #install_instrumentation, #load_instrumentation_files

Instance Method Details

#envObject



5
6
7
# File 'lib/ting_yun/frameworks/ruby.rb', line 5

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

#init_config(options = {}) ⇒ Object



13
14
# File 'lib/ting_yun/frameworks/ruby.rb', line 13

def init_config(options={})
end

#rootObject



9
10
11
# File 'lib/ting_yun/frameworks/ruby.rb', line 9

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