项目作者: metaware

项目描述 :
Feature Flipper, Feature Flags, Rollout Flags, Feature Toggles for Crystal
高级语言: Crystal
项目地址: git://github.com/metaware/flipper.git
创建时间: 2017-08-13T18:54:11Z
项目社区:https://github.com/metaware/flipper

开源协议:MIT License

下载


flipper

Build Status
LICENSE
GitHub tag

Feature flipping is the act of enabling or disabling features or parts of your application, ideally without re-deploying or changing anything in your code base.

Installation

Add this to your application’s shard.yml:

  1. dependencies:
  2. flipper:
  3. github: metaware/flipper

Usage

  1. require "flipper"

You are free to use anyone of the supported adapters/stores from crystal-kiwi

  1. Flipper.adapter = Kiwi::RedisStore.new(Redis.new)
  1. Flipper.enable(:feature_name)
  2. if Flipper.enabled?(:feature_name)
  3. puts "Feature launched, Let's roll!"
  4. else
  5. puts "Feature not released yet."
  6. end
  7. Flipper.disable(:search)
  8. if Flipper.disabled?(:search)
  9. puts "Search is not available yet!"
  10. end

Note: I strongly recommend to not use Kiwi::MemoryStore for development or production environments. It’s suitable only for your test environments.

Roadmap

  • Simple Logic Gate
  • Groups
  • Individual Users/Actors
  • Percentage of Actors

Contributing

  1. Fork it ( https://github.com/metaware/flipper/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am ‘Add some feature’)
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Credits

Contributors