class PlatformAPI::PipelineConfigVar

Pipeline Config Vars allow you to manage the configuration information provided to a pipeline.

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 2411
def initialize(client)
  @client = client
end

Public Instance Methods

info_for_app(pipeline_id, pipeline_coupling_stage) click to toggle source

Get config-vars for a pipeline stage.

@param pipeline_id: unique identifier of pipeline @param pipeline_coupling_stage: target pipeline stage

# File lib/platform-api/client.rb, line 2419
def info_for_app(pipeline_id, pipeline_coupling_stage)
  @client.pipeline_config_var.info_for_app(pipeline_id, pipeline_coupling_stage)
end
update(pipeline_id, pipeline_coupling_stage, body = {}) click to toggle source

Update config-vars for a pipeline stage. You can update existing config-vars by setting them again, and remove by setting it to `null`.

@param pipeline_id: unique identifier of pipeline @param pipeline_coupling_stage: target pipeline stage @param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 2428
def update(pipeline_id, pipeline_coupling_stage, body = {})
  @client.pipeline_config_var.update(pipeline_id, pipeline_coupling_stage, body)
end