Method: Gitlab::Client::Environments#edit_environment

Defined in:
lib/gitlab/client/environments.rb

#edit_environment(project, id, options = {}) ⇒ Gitlab::ObjectifiedHash

Update an environment.

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of an environment.

  • options (Hash) (defaults to: {})

    A hash of the attribute keys & values to update.

Options Hash (options):

  • env_name (String)

    Name for the environment

  • external_url (String)

    Optional URL for viewing the deployed project in this environment

Returns:

[View source]

61
62
63
# File 'lib/gitlab/client/environments.rb', line 61

def edit_environment(project, id, options = {})
  put("/projects/#{url_encode project}/environments/#{id}", body: options)
end