Class: PlatformAPI::PipelineStack
- Inherits:
-
Object
- Object
- PlatformAPI::PipelineStack
- 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
-
#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.
-
#initialize(client) ⇒ PipelineStack
constructor
A new instance of PipelineStack.
Constructor Details
#initialize(client) ⇒ PipelineStack
Returns a new instance of PipelineStack.
2511 2512 2513 |
# File 'lib/platform-api/client.rb', line 2511 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.
2518 2519 2520 |
# File 'lib/platform-api/client.rb', line 2518 def default_stack(pipeline_id_or_pipeline_name) @client.pipeline_stack.default_stack(pipeline_id_or_pipeline_name) end |