DynamoDB storage adapter for Rollout
This is a storage adapter for Rollout that uses DynamoDB. Rollout allows you to flip feature flags around in a sane way.
I wrote this adapter for those who either don't want to stand up a new redis instance or introduce a new single point of failure into their architecture.
Installation
Add this line to your application's Gemfile:
gem 'rollout-dynamodb'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rollout-dynamodb
Usage
$storage = Rollout::DynamoDB::Storage.new(aws_access_key, aws_secret_key, aws_table_name, aws_region)
$rollout = Rollout.new($storage)
$rollout.active?(:chat)
# -> false
$rollout.activate(:chat)
# -> {}
$rollout.active?(:chat)
# -> true
Contributing
- Fork it ( https://github.com/chooper/rollout-dynamodb/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