Module: Buildkit::Client::Agents
- Included in:
- Buildkit::Client
- Defined in:
- lib/buildkit/client/agents.rb
Overview
Methods for the Agents API
Instance Method Summary collapse
-
#agent(org, id, options = {}) ⇒ Sawyer::Resource
Get an agent.
-
#agents(org, options = {}) ⇒ Array<Sawyer::Resource>
List agents.
-
#stop_agent(org, id, options = {}) ⇒ Object
Stop an agent.
Instance Method Details
#agent(org, id, options = {}) ⇒ Sawyer::Resource
Get an agent
27 28 29 |
# File 'lib/buildkit/client/agents.rb', line 27 def agent(org, id, = {}) get("/v2/organizations/#{org}/agents/#{id}", ) end |
#agents(org, options = {}) ⇒ Array<Sawyer::Resource>
List agents
15 16 17 |
# File 'lib/buildkit/client/agents.rb', line 15 def agents(org, = {}) get("/v2/organizations/#{org}/agents", ) end |
#stop_agent(org, id, options = {}) ⇒ Object
Stop an agent
38 39 40 |
# File 'lib/buildkit/client/agents.rb', line 38 def stop_agent(org, id, = {}) put("/v2/organizations/#{org}/agents/#{id}/stop", ) end |