Method: Gitlab::Client::Environments#stop_environment

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

#stop_environment(project, id) ⇒ Array<Gitlab::ObjectifiedHash>

Stop an environment.

Examples:

Gitlab.stop_environment(5, 36)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of an environment.

Returns:

[View source]

85
86
87
# File 'lib/gitlab/client/environments.rb', line 85

def stop_environment(project, id)
  post("/projects/#{url_encode project}/environments/#{id}/stop")
end