Class: PlatformAPI::Pipeline

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

A pipeline allows grouping of apps into different stages.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Pipeline

Returns a new instance of Pipeline.



2569
2570
2571
# File 'lib/platform-api/client.rb', line 2569

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object

Create a new pipeline.

Parameters:

  • body:

    the object to pass as the request payload



2576
2577
2578
# File 'lib/platform-api/client.rb', line 2576

def create(body = {})
  @client.pipeline.create(body)
end

#delete(pipeline_id) ⇒ Object

Delete an existing pipeline.

Parameters:

  • pipeline_id:

    unique identifier of pipeline



2590
2591
2592
# File 'lib/platform-api/client.rb', line 2590

def delete(pipeline_id)
  @client.pipeline.delete(pipeline_id)
end

#info(pipeline_id_or_pipeline_name) ⇒ Object

Info for existing pipeline.

Parameters:

  • pipeline_id_or_pipeline_name:

    unique identifier of pipeline or name of pipeline



2583
2584
2585
# File 'lib/platform-api/client.rb', line 2583

def info(pipeline_id_or_pipeline_name)
  @client.pipeline.info(pipeline_id_or_pipeline_name)
end

#listObject

List existing pipelines.



2603
2604
2605
# File 'lib/platform-api/client.rb', line 2603

def list()
  @client.pipeline.list()
end

#update(pipeline_id, body = {}) ⇒ Object

Update an existing pipeline.

Parameters:

  • pipeline_id:

    unique identifier of pipeline

  • body:

    the object to pass as the request payload



2598
2599
2600
# File 'lib/platform-api/client.rb', line 2598

def update(pipeline_id, body = {})
  @client.pipeline.update(pipeline_id, body)
end