Skip to content

Commit

Permalink
Merge pull request fetlife#159 from benjaminoakes/patch-1
Browse files Browse the repository at this point in the history
Document $rollout.get
  • Loading branch information
Bartuz authored Sep 11, 2022
2 parents 6569583 + f0984f7 commit 4a7a0b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ deactivate them automatically when a threshold is reached to prevent service
failures from cascading. See https://github.com/jamesgolick/degrade for the
failure detection code.

## Check Rollout Feature

You can inspect the state of your feature using:

```ruby
>> $rollout.get(:chat)
=> #<Rollout::Feature:0x00007f99fa4ec528 @data={}, @groups=[:caretakers], @name=:chat, @options={}, @percentage=0.05, @users=["1"]>
```

## Namespacing

Rollout separates its keys from other keys in the data store using the
Expand Down

0 comments on commit 4a7a0b9

Please sign in to comment.