class LabClient::ProjectRunners

Inspect Helper

Specifics

Specifics

Specifics

Public Instance Methods

disable(project_id, runner_id) click to toggle source
# File lib/labclient/projects/runners/disable.rb, line 18
def disable(project_id, runner_id)
  project_id = format_id(project_id)
  runner_id = format_id(runner_id)

  client.request(:delete, "projects/#{project_id}/runners/#{runner_id}")
end
enable(project_id, runner_id) click to toggle source
# File lib/labclient/projects/runners/enable.rb, line 20
def enable(project_id, runner_id)
  project_id = format_id(project_id)
  runner_id = format_id(runner_id)

  client.request(:post, "projects/#{project_id}/runners", Runner, { runner_id: runner_id })
end
list(project_id, query = {}) click to toggle source
# File lib/labclient/projects/runners/list.rb, line 29
def list(project_id, query = {})
  project_id = format_id(project_id)
  client.request(:get, "projects/#{project_id}/runners", Runner, query)
end