Module: Herbert::Configurator::Helpers
- Defined in:
- lib/herbert/Configurator.rb
Instance Method Summary collapse
Instance Method Details
#debug? ⇒ Boolean
25 26 27 |
# File 'lib/herbert/Configurator.rb', line 25 def debug? ENV['HERBERT_DEBUG'] == '1' end |
#development? ⇒ Boolean
21 22 23 |
# File 'lib/herbert/Configurator.rb', line 21 def development? ENV['RACK_ENV'] == 'development' || (ENV['RACK_ENV'].empty?) end |
#staging? ⇒ Boolean
17 18 19 |
# File 'lib/herbert/Configurator.rb', line 17 def staging? ENV['RACK_ENV'] == 'staging' end |