Sha256: ab618be66ac7956fd86a3b8c71a02312b1d02a8c184d160ede141e609b68e1e0

Contents?: true

Size: 471 Bytes

Versions: 6

Compression:

Stored size: 471 Bytes

Contents

module Dryad
  class Configuration
    attr_accessor :consul, :namespace, :group, :registry, :service

    DEFAULT_OPTIONS = {
      consul: {
        host: 'localhost',
        port: 8500
      },
      service: {}
    }

    def initialize(opts = {})
      opts = DEFAULT_OPTIONS.merge(opts)
      @consul = opts[:consul]
      @namespace = opts[:namespace]
      @group = opts[:group]
      @registry = opts[:registry]
      @service = opts[:service]
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dryad-0.2.0 dryad-core/lib/dryad/configuration.rb
dryad-core-0.2.0 lib/dryad/configuration.rb
dryad-0.1.1 dryad-core/lib/dryad/configuration.rb
dryad-core-0.1.1 lib/dryad/configuration.rb
dryad-0.1.0 dryad-core/lib/dryad/configuration.rb
dryad-core-0.1.0 lib/dryad/configuration.rb