Module: Fiveruns::Tuneup::Environment
- Included in:
- Fiveruns::Tuneup
- Defined in:
- lib/fiveruns/tuneup/environment.rb
Instance Method Summary collapse
Instance Method Details
#application_name ⇒ Object
21 22 23 24 25 |
# File 'lib/fiveruns/tuneup/environment.rb', line 21 def application_name app_name = RAILS_ROOT.split('/').last return app_name unless app_name == 'current' File.join(RAILS_ROOT, '..').split('/').last end |
#environment ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/fiveruns/tuneup/environment.rb', line 5 def environment { 'application_name' => application_name, 'rails_env' => rails_env, 'rails_version' => rails_version } end |
#rails_env ⇒ Object
13 14 15 |
# File 'lib/fiveruns/tuneup/environment.rb', line 13 def rails_env RAILS_ENV || 'development' end |