require 'hashr' require 'logger' require 'evrone/ci/common/tagged_logging' module Evrone module CI class Router class Configuration < ::Hashr extend Hashr::EnvDefaults self.env_namespace = 'ci_router' self.raise_missing_keys = true define amqp_url: nil, timeout: 30 * 60, logger: Common::TaggedLogging.new(Logger.new STDOUT), workers: 1, webdav_cache_url: nil def timeout self[:timeout].to_i end end end end end