Module: Herbert::Configurator::Helpers

Defined in:
lib/herbert/Configurator.rb

Instance Method Summary collapse

Instance Method Details

#debug?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/herbert/Configurator.rb', line 31

def debug?
  ENV['HERBERT_DEBUG'] == '1'
end

#development?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/herbert/Configurator.rb', line 27

def development?
  ENV['RACK_ENV'] == 'development' || (ENV['RACK_ENV']===nil)
end

#staging?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/herbert/Configurator.rb', line 23

def staging?
  ENV['RACK_ENV'] == 'staging'
end