Dev::Vault

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

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

Vault is maintained by Hashicorp. Please see https://www.vaultproject.io/ for details.

Installation

Add this line to your application's Gemfile:

gem 'dev-vault'

Or Gemspec:

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

And then execute:

$ bundle install

Or install it yourself as:

$ gem install dev-vault

Usage

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

To integrate into tests:

require 'dev/vault'

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

    ## Mute output once the vault server is running
    Dev::Vault.output(false)
  end

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

  ## ...
end

Contributing

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