Method: Gitlab::Client::Features#set_feature
- Defined in:
- lib/gitlab/client/features.rb
#set_feature(name, value, options = {}) ⇒ Gitlab::ObjectifiedHash
Set a features gate value. If a feature with the given name does not exist yet it will be created. The value can be a boolean, or an integer to indicate percentage of time.
32 33 34 35 |
# File 'lib/gitlab/client/features.rb', line 32 def set_feature(name, value, = {}) body = { value: value }.merge() post("/features/#{name}", body: body) end |