Sha256: 53b1d7a9d656483076c94b67bbe1d9c713dc4153bccc368ce165a93ac51b53cf

Contents?: true

Size: 383 Bytes

Versions: 7

Compression:

Stored size: 383 Bytes

Contents

require "singleton"
require 'hashie'

module Weeter
  class Configuration
    class ClientAppConfig < Hashie::Mash
      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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
weeter-0.19.4 lib/weeter/configuration/client_app_config.rb
weeter-0.19.3 lib/weeter/configuration/client_app_config.rb
weeter-0.19.2 lib/weeter/configuration/client_app_config.rb
weeter-0.19.1 lib/weeter/configuration/client_app_config.rb
weeter-0.19.0 lib/weeter/configuration/client_app_config.rb
weeter-0.18.0 lib/weeter/configuration/client_app_config.rb
weeter-0.17.0 lib/weeter/configuration/client_app_config.rb