atlas
Atlas is a Ruby client for Hashicorp's Atlas.
Installation
Add this line to your application's Gemfile:
gem 'atlas'
And then execute:
$ bundle
Or install it yourself as:
$ gem install atlas
Usage
atlas uses an approach similar ActiveRecord:
# first, login with the token from Atlas
Atlas.configure do |config|
config.access_token = 'token'
end
# then you can load in users (creating, updating, etc isn't supported by Atlas)
user = Atlas::User.find('nickcharlton')
#=> <Atlas::User username=nickcharlton...>
# or access boxes, their versions and providers
box = Atlas::Box.find('nickcharlton/example-box')
#=> <Atlas::Box name=example-box'...>
# or create a new version
version = box.create(version: '1.0.0', description: 'A new box version.')
It aims to support most of the functionality listed in the Atlas API Documentation.
Contributing
- Fork it ( https://github.com/nickcharlton/atlas-ruby/fork )
- 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 a new Pull Request
Author
Copyright (c) 2015 Nick Charlton [email protected]