Method: Confy::Api::Config#update
- Defined in:
- lib/confy/api/config.rb
#update(config, options = {}) ⇒ Object
Update the configuration document for the given environment of the project. We will patch the document recursively.
‘/orgs/:org/projects/:project/envs/:env/config’ PATCH
config - Configuration to update
33 34 35 36 37 38 |
# File 'lib/confy/api/config.rb', line 33 def update(config, = {}) body = .fetch(:body, {}) body[:config] = config @client.patch("/orgs/#{@org}/projects/#{@project}/envs/#{@env}/config", body, ) end |