Module: ThreeScale::Tasks::Helpers::Environment
- Defined in:
- lib/3scale/tasks/helpers/environment.rb
Class Method Summary collapse
Class Method Details
.saas? ⇒ Boolean
13 14 15 |
# File 'lib/3scale/tasks/helpers/environment.rb', line 13 def saas? ThreeScale::Backend.configuration.saas end |
.testable? ⇒ Boolean
9 10 11 |
# File 'lib/3scale/tasks/helpers/environment.rb', line 9 def testable? !%w(preview production).include?(ENV['RACK_ENV']) end |
.using_async_redis? ⇒ Boolean
17 18 19 |
# File 'lib/3scale/tasks/helpers/environment.rb', line 17 def using_async_redis? ThreeScale::Backend.configuration.redis.async end |