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