Sha256: 07373b9f654af4514dd01f2f4195658f02701aa224f71cba9696925d2a03efbf

Contents?: true

Size: 516 Bytes

Versions: 11

Compression:

Stored size: 516 Bytes

Contents

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

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

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

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
dryad-1.0.1 lib/dryad/configuration.rb
dryad-1.0.0 lib/dryad/configuration.rb
dryad-0.3.4 lib/dryad/configuration.rb
dryad-0.3.2 lib/dryad/configuration.rb
dryad-0.3.0 lib/dryad/configuration.rb
dryad-0.2.7 lib/dryad/configuration.rb
dryad-0.2.6 lib/dryad/configuration.rb
dryad-0.2.5 lib/dryad/configuration.rb
dryad-0.2.3 lib/dryad/configuration.rb
dryad-0.2.1 dryad-core/lib/dryad/configuration.rb
dryad-core-0.2.1 lib/dryad/configuration.rb