class PlatformAPI::PipelinePromotion
Promotions allow you to move code from an app in a pipeline to all targets
Public Class Methods
new(client)
click to toggle source
# File lib/platform-api/client.rb, line 2530 def initialize(client) @client = client end
Public Instance Methods
create(body = {})
click to toggle source
Create a new promotion.
@param body: the object to pass as the request payload
# File lib/platform-api/client.rb, line 2537 def create(body = {}) @client.pipeline_promotion.create(body) end
info(pipeline_promotion_id)
click to toggle source
Info for existing pipeline promotion.
@param pipeline_promotion_id: unique identifier of promotion
# File lib/platform-api/client.rb, line 2544 def info(pipeline_promotion_id) @client.pipeline_promotion.info(pipeline_promotion_id) end