Vault::Tools
Tools is the English word for ツール. Tooling for the Heroku Vault team to enable faster bootstrapping for Ruby projects.
Setting up a development environment
Install the dependencies:
bundle install --binstubs vendor/bin
rbenv rehash
Run the tests:
vendor/bin/t
Generate the API documentation:
vendor/bin/d
Installation
Add this line to your application's Gemfile:
gem 'vault-tools'
Usage
Logging
Log.time(name, t)
# => "measure=true at=web-40"
Log.count('foo')
# => "measure=true at=foo"
Sinatra base class
Includes request logging and health endpoints
class Web < Vault::Web
helpers Vault::SinatraHelpers::HtmlSerializer
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Releasing
> bundle exec rake release