Class: Fiveruns::Tuneup::Configuration
- Inherits:
-
Object
- Object
- Fiveruns::Tuneup::Configuration
- Defined in:
- lib/fiveruns/tuneup/configuration.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#log_directory ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/fiveruns/tuneup/configuration.rb', line 6 def log_directory @log_directory ||= begin rails_log = RAILS_DEFAULT_LOGGER.instance_eval { @log.path rescue @logdev.filename } File.dirname(rails_log) rescue Dir::tmpdir end end |
Instance Method Details
#environments ⇒ Object
15 16 17 |
# File 'lib/fiveruns/tuneup/configuration.rb', line 15 def environments @environments ||= %w(development) end |
#instrument? ⇒ Boolean
19 20 21 |
# File 'lib/fiveruns/tuneup/configuration.rb', line 19 def instrument? environments.map(&:to_s).include?(RAILS_ENV) end |