Bastet - The unstable beast
Goddess associated with war, protection of Lower Egypt and the pharaoh, the sun, perfumes, ointments and embalming
Configuration
redis = Redis.new
$bastet = Bastet.setup(redis)
Usage
$bastet.activate(:crazy_feature, current_user)
$bastet.active?(:crazy_feature, current_user) #=> true
$bastet.active?(:scary_feature, :admins) #=> false
$bastet.activate(:scary_feature, :admins)
$bastet.active?(:scary_feature, :admins) #=> true
To do
- Support activating/deactivating all features for groups/users
- Support activating/deactivating for multiple users/groups at once
- Percentage support
- Logging
Contibuting
- Fork Basteet
- Create a topic branch -
git checkout -b my_branch
- Push to your branch -
git push origin my_branch
- Create a pull request from your branch