Class: TingYun::Frameworks::Ruby
- Defined in:
- lib/ting_yun/frameworks/ruby.rb
Instance Attribute Summary
Attributes included from InstanceMethods
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
#env ⇒ Object
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(={}) end |
#root ⇒ Object
9 10 11 |
# File 'lib/ting_yun/frameworks/ruby.rb', line 9 def root @root ||= ENV['APP_ROOT'] || '.' end |