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