class LabClient::Runners

Specifics

Specifics

Specifics

Specifics

Specifics

Specifics

Specifics

Specifics

Specifics

Public Instance Methods

all(query = {}) click to toggle source
# File lib/labclient/runners/all.rb, line 20
def all(query = {})
  client.request(:get, 'runners/all', Runner, query)
end
delete(token) click to toggle source
# File lib/labclient/runners/delete.rb, line 10
def delete(token)
  client.request(:delete, 'runners', nil, token: token)
end
jobs(runner_id, query = {}) click to toggle source
# File lib/labclient/runners/jobs.rb, line 20
def jobs(runner_id, query = {})
  runner_id = format_id(runner_id)
  client.request(:get, "runners/#{runner_id}/jobs", Job, query)
end
list(query = {}) click to toggle source
# File lib/labclient/runners/list.rb, line 20
def list(query = {})
  client.request(:get, 'runners', Runner, query)
end
register(query) click to toggle source
# File lib/labclient/runners/register.rb, line 26
def register(query)
  client.request(:post, 'runners', nil, query)
end
remove(runner_id) click to toggle source
# File lib/labclient/runners/remove.rb, line 18
def remove(runner_id)
  runner_id = format_id(runner_id)

  client.request(:delete, "runners/#{runner_id}")
end
show(runner_id) click to toggle source
# File lib/labclient/runners/show.rb, line 11
def show(runner_id)
  runner_id = format_id(runner_id)
  client.request(:get, "runners/#{runner_id}", Runner)
end
update(runner_id, query) click to toggle source
# File lib/labclient/runners/update.rb, line 39
def update(runner_id, query)
  runner_id = format_id(runner_id)

  client.request(:put, "runners/#{runner_id}", Runner, query)
end
verify(token) click to toggle source
# File lib/labclient/runners/verify.rb, line 18
def verify(token)
  client.request(:post, 'runners/verify', nil, token: token)
end