Project

dev-consul

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
dev/consul bundles all of Hashicorp's platform-specific binaries for Consul and provides helpers to detect the local platform and run the right build.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 10.0
~> 0.3
 Project Readme

Dev::Consul

Dev::Consul is a simple wrapper around the Consul binary for development and testing. It bundles all of the published Consul binaries at Dev::Consul::VERSION and runs the correct build for the local system.

Note that Dev::Consul's version follows that of Consul.

Consul is maintained by Hashicorp. Please see https://www.consul.io/ for details.

Installation

Add this line to your application's Gemfile:

gem 'dev-consul'

Or Gemspec:

spec.add_development_dependency 'dev-consul', '0.6.4'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install dev-consul

Usage

Run bundle exec rake to launch a local instance of Consul.

To integrate into tests:

require 'dev/consul'

RSpec.configure do |config|
  config.before(:suite) do
    Dev::Consul.run

    ## Mute output once the consul server is running
    Dev::Consul.output(false)
  end

  config.after(:suite) do
    Dev::Consul.stop
  end

  ## ...
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rapid7/dev-consul.