Module: Gitlab::CI::Client::Runners
- Included in:
- Gitlab::CI::Client
- Defined in:
- lib/gitlab/ci/client/runners.rb
Overview
Defines methods related to repositories.
Instance Method Summary collapse
-
#delete_runner(token) ⇒ Array<Gitlab::ObjectifiedHash>
Used to remove runners.
-
#register_runner(token) ⇒ Array<Gitlab::ObjectifiedHash>
Used to make GitLab CI aware of available runners.
-
#runners(options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Used to get information about all runners registered on the GitLab CI instance.
Instance Method Details
#delete_runner(token) ⇒ Array<Gitlab::ObjectifiedHash>
Used to remove runners.
40 41 42 |
# File 'lib/gitlab/ci/client/runners.rb', line 40 def delete_runner(token) delete("/runners/delete", body: { token: token }) end |
#register_runner(token) ⇒ Array<Gitlab::ObjectifiedHash>
Used to make GitLab CI aware of available runners.
28 29 30 |
# File 'lib/gitlab/ci/client/runners.rb', line 28 def register_runner(token) post("/runners/register", body: { token: token }) end |
#runners(options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Used to get information about all runners registered on the GitLab CI instance.
14 15 16 |
# File 'lib/gitlab/ci/client/runners.rb', line 14 def runners(={}) get("/runners", query: ) end |