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
- #info(pipeline_promotion_id) ⇒ Object
-
#initialize(client) ⇒ PipelinePromotion
constructor
A new instance of PipelinePromotion.
Constructor Details
#initialize(client) ⇒ PipelinePromotion
Returns a new instance of PipelinePromotion.
3778 3779 3780 |
# File 'lib/platform-api/client.rb', line 3778 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
3790 3791 3792 |
# File 'lib/platform-api/client.rb', line 3790 def create(body = {}) @client.pipeline_promotion.create(body) end |
#info(pipeline_promotion_id) ⇒ Object
3802 3803 3804 |
# File 'lib/platform-api/client.rb', line 3802 def info(pipeline_promotion_id) @client.pipeline_promotion.info(pipeline_promotion_id) end |