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, options = {})
  body = options.fetch(:body, {})
  body[:config] = config

  @client.patch("/orgs/#{@org}/projects/#{@project}/envs/#{@env}/config", body, options)
end