Method: Gitlab::Client::Deployments#deployment

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

#deployment(project, id) ⇒ Gitlab::ObjectifiedHash

Gets a single deployment.

Examples:

Gitlab.deployment(5, 36)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of an deployment.

Returns:



30
31
32
# File 'lib/gitlab/client/deployments.rb', line 30

def deployment(project, id)
  get("/projects/#{url_encode project}/deployments/#{id}")
end