Method: LabClient::ProjectRunners#enable

Defined in:
lib/labclient/projects/runners/enable.rb

#enable(project_id, runner_id) ⇒ Object



20
21
22
23
24
25
# 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