Module: Gitlab::Client::Deployments
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/deployments.rb
Overview
Defines methods related to deployments.
Instance Method Summary collapse
-
#deployment(project, id) ⇒ Gitlab::ObjectifiedHash
Gets a single deployment.
-
#deployments(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of project deployments.
Instance Method Details
#deployment(project, id) ⇒ Gitlab::ObjectifiedHash
Gets a single deployment.
30 31 32 |
# File 'lib/gitlab/client/deployments.rb', line 30 def deployment(project, id) get("/projects/#{url_encode project}/deployments/#{id}") end |
#deployments(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of project deployments.
18 19 20 |
# File 'lib/gitlab/client/deployments.rb', line 18 def deployments(project, = {}) get("/projects/#{url_encode project}/deployments", query: ) end |