Class: PlatformAPI::PipelineStack

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

Overview

A pipeline's stack is determined by the apps in the pipeline. This is used during creation of CI and Review Apps that have no stack defined in app.json

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ PipelineStack

Returns a new instance of PipelineStack.



2565
2566
2567
# File 'lib/platform-api/client.rb', line 2565

def initialize(client)
  @client = client
end

Instance Method Details

#default_stack(pipeline_id_or_pipeline_name) ⇒ Object

The stack for a given pipeline, used for CI and Review Apps that have no stack defined in app.json.

Parameters:

  • pipeline_id_or_pipeline_name:

    unique identifier of pipeline or name of pipeline



2572
2573
2574
# File 'lib/platform-api/client.rb', line 2572

def default_stack(pipeline_id_or_pipeline_name)
  @client.pipeline_stack.default_stack(pipeline_id_or_pipeline_name)
end