Module: StartHer
- Extended by:
- SingleForwardable
- Defined in:
- lib/start_her.rb,
lib/start_her/utils.rb,
lib/start_her/logger.rb,
lib/start_her/testing.rb,
lib/start_her/version.rb,
lib/start_her/heartbeat.rb,
lib/start_her/publisher.rb,
lib/start_her/subscriber.rb,
lib/start_her/redis_client.rb,
lib/start_her/configuration.rb,
lib/start_her/retry_policies.rb,
lib/start_her/refinements/string.rb
Defined Under Namespace
Modules: Logger, Publisher, RedisClient, Refinements, RetryPolicies, Subscriber, Testing, Utils
Classes: Configuration, Heartbeat, StubedRedis
Constant Summary
collapse
- VERSION =
'0.0.5'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
16
17
18
|
# File 'lib/start_her.rb', line 16
def config
@config ||= Configuration.new
end
|
21
22
23
|
# File 'lib/start_her.rb', line 21
def configure
yield config
end
|
.env ⇒ Object
25
26
27
28
29
|
# File 'lib/start_her.rb', line 25
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
|