Sha256: 33e3d63415513e72d0b531d20b47a1a1123258cc60f97205d4eb14a5539a11be
Contents?: true
Size: 558 Bytes
Versions: 1
Compression:
Stored size: 558 Bytes
Contents
module Dryad class Configuration attr_accessor :consul, :namespace, :group, :registry, :provider, :service, :cluster 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] @cluster = opts[:cluster] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dryad-1.1.0 | lib/dryad/configuration.rb |