Module: Buildkit::Client::Pipelines
- Included in:
- Buildkit::Client
- Defined in:
- lib/buildkit/client/pipelines.rb
Overview
Methods for the pipelines API
Instance Method Summary collapse
-
#create_pipeline(org, options = {}) ⇒ Object
Create a pipeline.
-
#pipeline(org, pipeline, options = {}) ⇒ Sawyer::Resource
Get a pipeline.
-
#pipelines(org, options = {}) ⇒ Array<Sawyer::Resource>
List pipelines.
-
#update_pipeline(org, pipeline, options = {}) ⇒ Sawyer::Resource
Update a pipeline.
Instance Method Details
#create_pipeline(org, options = {}) ⇒ Object
Create a pipeline
48 49 50 |
# File 'lib/buildkit/client/pipelines.rb', line 48 def create_pipeline(org, = {}) post("/v2/organizations/#{org}/pipelines", ) end |
#pipeline(org, pipeline, options = {}) ⇒ Sawyer::Resource
Get a pipeline
25 26 27 |
# File 'lib/buildkit/client/pipelines.rb', line 25 def pipeline(org, pipeline, = {}) get("/v2/organizations/#{org}/pipelines/#{pipeline}", ) end |
#pipelines(org, options = {}) ⇒ Array<Sawyer::Resource>
List pipelines
13 14 15 |
# File 'lib/buildkit/client/pipelines.rb', line 13 def pipelines(org, = {}) get("/v2/organizations/#{org}/pipelines", ) end |
#update_pipeline(org, pipeline, options = {}) ⇒ Sawyer::Resource
Update a pipeline
63 64 65 |
# File 'lib/buildkit/client/pipelines.rb', line 63 def update_pipeline(org, pipeline, = {}) patch("/v2/organizations/#{org}/pipelines/#{pipeline}", ) end |