项目作者: knowledge-ruby

项目描述 :
🌐 SSM adapter for knowledge
高级语言: Ruby
项目地址: git://github.com/knowledge-ruby/knowledge-ssm.git
创建时间: 2018-12-02T01:09:24Z
项目社区:https://github.com/knowledge-ruby/knowledge-ssm

开源协议:GNU General Public License v3.0

下载


Knowledge Ssm

This is the official AWS SSM adapter for knowledge gem.

Disclaimer

The full documentation is currently being written. You should be able to find a better documentation in a few hours or days.

Waiting for the full documentation, you can have a look at the code which is already well-documented.

Have a look to the wiki too.

Installation

Add this line to your application’s Gemfile:

  1. gem 'knowledge-ssm'

And then execute:

  1. $ bundle

Or install it yourself as:

  1. $ gem install knowledge-ssm

Dependencies - Aws SDK

As AWS SDK version 2 and 3 have the same API, it has been dropped from the gem to allow developers using the version they want.

Using version 2:

AWS official documentation for SDK v2

  1. # Add the SDK to your Gemfile
  2. gem 'aws-sdk', '~> 2.0'
  3. # And then Knowledge SSM adapter
  4. gem 'knowledge-ssm'

Using version 3:

AWS official documentation for SDK v3

  1. # You can add all the SDK
  2. gem 'aws-sdk', '~> 3'
  3. # Or just the service you need
  4. gem 'aws-sdk-ssm', '~> 1'
  5. # And then Knowledge SSM adapter
  6. gem 'knowledge-ssm'

Usage

  1. require 'knowledge/ssm'
  2. knowledge = Knowledge::Learner.new
  3. knowledge.variables = { ssm: { my_secret: 'path/to/secret' } }
  4. knowledge.use(name: :ssm)
  5. knowledge.add_adapter_params(adapter: :ssm, params: { root_path: '/project' })
  6. knowledge.gather!
  7. Knowledge::Configuration.my_secret # "Secret value"

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/knowledge-ruby/knowledge-ssm. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Code of Conduct

Everyone interacting in the Knowledge::Ssm project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Licensing

This project is licensed under GPLv3+.

You can find it in LICENSE.md file.