Class: PlatformAPI::PipelinePromotion
- Inherits:
-
Object
- Object
- PlatformAPI::PipelinePromotion
- Defined in:
- lib/platform-api/client.rb
Overview
Promotions allow you to move code from an app in a pipeline to all targets
Instance Method Summary collapse
-
#create(body = {}) ⇒ Object
Create a new promotion.
-
#info(pipeline_promotion_id) ⇒ Object
Info for existing pipeline promotion.
-
#initialize(client) ⇒ PipelinePromotion
constructor
A new instance of PipelinePromotion.
Constructor Details
#initialize(client) ⇒ PipelinePromotion
Returns a new instance of PipelinePromotion.
2532 2533 2534 |
# File 'lib/platform-api/client.rb', line 2532 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new promotion.
2539 2540 2541 |
# File 'lib/platform-api/client.rb', line 2539 def create(body = {}) @client.pipeline_promotion.create(body) end |
#info(pipeline_promotion_id) ⇒ Object
Info for existing pipeline promotion.
2546 2547 2548 |
# File 'lib/platform-api/client.rb', line 2546 def info(pipeline_promotion_id) @client.pipeline_promotion.info(pipeline_promotion_id) end |