lib/weeter/configuration/client_app_config.rb in weeter-0.15.0 vs lib/weeter/configuration/client_app_config.rb in weeter-0.17.0
- old
+ new
@@ -2,11 +2,14 @@
require 'hashie'
module Weeter
class Configuration
class ClientAppConfig < Hashie::Mash
- def subscription_updates_port
- self['subscription_updates_port'] || 7337
+ DEFAULT_SUBSCRIPTIONS_UPDATE_PORT = 7337
+ InvalidConfiguration = Class.new(StandardError)
+
+ def verify_redis_namespace_config
+ !!self.redis_namespace || raise(InvalidConfiguration, 'missing `redis-namespace` config')
end
end
end
end