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.



2624
2625
2626
# File 'lib/platform-api/client.rb', line 2624

def initialize(client)
  @client = client
end

Instance Method Details

#default_stack(pipeline_id) ⇒ Object

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

Parameters:

  • pipeline_id:

    unique identifier of pipeline



2631
2632
2633
# File 'lib/platform-api/client.rb', line 2631

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