Sha256: c443f40d8244ce4cb8bef4a372c120d7a2df0dee894f2e10a7a8cf478c27178e

Contents?: true

Size: 612 Bytes

Versions: 2

Compression:

Stored size: 612 Bytes

Contents

require "diplomat"
require "dryad"
require "dryad/consul/version"
require "dryad/consul/service_client"
require "dryad/consul/service_registry"
require "dryad/consul/service"
require "dryad/consul/key_value_client"
require "dryad/consul/config_provider"

module Dryad
  module Consul
    class Error < StandardError; end

    ::Diplomat.configure do |config|
      config.url = "http://#{Dryad.configuration.consul[:host]}:#{Dryad.configuration.consul[:port]}"
      config.options = { headers: { "X-Consul-Token" => Dryad.configuration.consul[:token] } } if Dryad.configuration.consul[:token]
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
dryad-0.2.1 dryad-consul/lib/dryad/consul.rb
dryad-consul-0.2.1 lib/dryad/consul.rb