Module: StartHer
- Extended by:
- SingleForwardable
- Defined in:
- lib/start_her.rb,
lib/start_her/logger.rb,
lib/start_her/version.rb,
lib/start_her/subscriber.rb,
lib/start_her/redis_client.rb,
lib/start_her/configuration.rb,
lib/start_her/retry_policies.rb
Defined Under Namespace
Modules: Logger, RedisClient, RetryPolicies, Subscriber
Classes: Configuration
Constant Summary
collapse
- VERSION =
'0.0.1'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
14
15
16
|
# File 'lib/start_her.rb', line 14
def config
@config ||= Configuration.new
end
|
19
20
21
|
# File 'lib/start_her.rb', line 19
def configure
yield config
end
|
.env ⇒ Object
23
24
25
26
27
|
# File 'lib/start_her.rb', line 23
def env
(ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development').tap do |e|
fail 'Invalid environment name' unless %w(development test staging production).include?(e)
end
end
|