Class: OneApm::Probe::Frameworks::Rails3
- Inherits:
-
Rails
- Object
- OneApm::Probe
- Ruby
- Rails
- OneApm::Probe::Frameworks::Rails3
- Defined in:
- lib/one_apm/frameworks/rails3.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes included from InstanceMethods
Instance Method Summary collapse
Methods inherited from Rails
#agent_hooks_installed, #browser_monitoring_installed, #developer_mode_installed, #init_config, #install_agent_hooks, #install_browser_monitoring, #install_developer_mode, #rails_config, #root
Methods inherited from Ruby
Methods included from OneApm::Probe::FrameworkLoader
#init, #instance, #load_framework_class, #load_test_framework, #local_env, #new_instance, #oneapm_root, #reset
Methods included from InstanceMethods
#app, #configure_agent, #dispatcher, #framework, #init_plugin, #oneapm_root, #settings, #start_agent
Methods included from Instrumentation
#add_instrumentation, #detect_dependencies, #install_instrumentation, #load_instrumentation_files, #require_instrumentation
Instance Method Details
#env ⇒ Object
10 11 12 |
# File 'lib/one_apm/frameworks/rails3.rb', line 10 def env @env ||= ::Rails.env.to_s end |
#rails_root ⇒ Object
14 15 16 |
# File 'lib/one_apm/frameworks/rails3.rb', line 14 def rails_root ::Rails.root.to_s end |
#vendor_root ⇒ Object
18 19 20 |
# File 'lib/one_apm/frameworks/rails3.rb', line 18 def vendor_root @vendor_root ||= File.join(root,'vendor','rails') end |
#version ⇒ Object
22 23 24 |
# File 'lib/one_apm/frameworks/rails3.rb', line 22 def version @rails_version ||= OneApm::VersionNumber.new(::Rails::VERSION::STRING) end |