Sha256: 54c0d5fae126f5142fbfd7b4363f2aeb7e4aa2856743ea1558a6e4bfbfc4a96f

Contents?: true

Size: 602 Bytes

Versions: 22

Compression:

Stored size: 602 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),
               workers:           1,
               webdav_cache_url:  nil


        def timeout
          self[:timeout].to_i
        end

      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
evrone-ci-router-0.2.0.pre28 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre27 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre26 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre25 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre24 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre23 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre22 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre21 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre20 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre19 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre18 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre17 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre15 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre14 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre13 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre12 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre11 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre10 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre9 lib/evrone/ci/router/configuration.rb
evrone-ci-router-0.2.0.pre8 lib/evrone/ci/router/configuration.rb