Skip to content

Instantly share code, notes, and snippets.

@mkarklins
Created September 14, 2017 07:46
Show Gist options
  • Save mkarklins/1686af1636b54c4ceceaccde2d247e61 to your computer and use it in GitHub Desktop.
Save mkarklins/1686af1636b54c4ceceaccde2d247e61 to your computer and use it in GitHub Desktop.
Failing Diplomat
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
gem "diplomat", "2.0.2"
gem "json", "1.8.6"
end
require "diplomat"
Diplomat.configure do |config|
config.url = "http://localhost:8500"
end
Diplomat::Status.leader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment