Sha256: 77cfa74047aa21be778518523b4165fa501b471e3b699c94f5a0326b8065b49e

Contents?: true

Size: 551 Bytes

Versions: 1

Compression:

Stored size: 551 Bytes

Contents

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),
               repo_dir_name: "repo"

        def timeout
          self[:timeout].to_i
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
evrone-ci-router-0.2.0.pre0 lib/evrone/ci/router/configuration.rb