Class: PlatformAPI::Pipeline
- Inherits:
-
Object
- Object
- PlatformAPI::Pipeline
- Defined in:
- lib/platform-api/client.rb
Overview
A pipeline allows grouping of apps into different stages.
Instance Method Summary collapse
-
#create(body = {}) ⇒ Object
Create a new pipeline.
-
#delete(pipeline_id) ⇒ Object
Delete an existing pipeline.
-
#info(pipeline_id_or_pipeline_name) ⇒ Object
Info for existing pipeline.
-
#initialize(client) ⇒ Pipeline
constructor
A new instance of Pipeline.
-
#list ⇒ Object
List existing pipelines.
-
#update(pipeline_id, body = {}) ⇒ Object
Update an existing pipeline.
Constructor Details
#initialize(client) ⇒ Pipeline
Returns a new instance of Pipeline.
2595 2596 2597 |
# File 'lib/platform-api/client.rb', line 2595 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new pipeline.
2602 2603 2604 |
# File 'lib/platform-api/client.rb', line 2602 def create(body = {}) @client.pipeline.create(body) end |
#delete(pipeline_id) ⇒ Object
Delete an existing pipeline.
2616 2617 2618 |
# File 'lib/platform-api/client.rb', line 2616 def delete(pipeline_id) @client.pipeline.delete(pipeline_id) end |
#info(pipeline_id_or_pipeline_name) ⇒ Object
Info for existing pipeline.
2609 2610 2611 |
# File 'lib/platform-api/client.rb', line 2609 def info(pipeline_id_or_pipeline_name) @client.pipeline.info(pipeline_id_or_pipeline_name) end |
#list ⇒ Object
List existing pipelines.
2629 2630 2631 |
# File 'lib/platform-api/client.rb', line 2629 def list() @client.pipeline.list() end |
#update(pipeline_id, body = {}) ⇒ Object
Update an existing pipeline.
2624 2625 2626 |
# File 'lib/platform-api/client.rb', line 2624 def update(pipeline_id, body = {}) @client.pipeline.update(pipeline_id, body) end |