Class: PlatformAPI::Release
- Inherits:
-
Object
- Object
- PlatformAPI::Release
- Defined in:
- lib/platform-api/client.rb
Overview
A release represents a combination of code, config vars and add-ons for an app on Heroku.
Instance Method Summary collapse
-
#create(app_id_or_app_name, body) ⇒ Object
Create new release.
-
#info(app_id_or_app_name, release_id_or_release_version) ⇒ Object
Info for existing release.
-
#initialize(client) ⇒ Release
constructor
A new instance of Release.
-
#list(app_id_or_app_name) ⇒ Object
List existing releases.
-
#rollback(app_id_or_app_name, body) ⇒ Object
Rollback to an existing release.
Constructor Details
#initialize(client) ⇒ Release
Returns a new instance of Release.
1193 1194 1195 |
# File 'lib/platform-api/client.rb', line 1193 def initialize(client) @client = client end |
Instance Method Details
#create(app_id_or_app_name, body) ⇒ Object
Create new release. The API cannot be used to create releases on Bamboo apps.
1216 1217 1218 |
# File 'lib/platform-api/client.rb', line 1216 def create(app_id_or_app_name, body) @client.release.create(app_id_or_app_name, body) end |
#info(app_id_or_app_name, release_id_or_release_version) ⇒ Object
Info for existing release.
1201 1202 1203 |
# File 'lib/platform-api/client.rb', line 1201 def info(app_id_or_app_name, release_id_or_release_version) @client.release.info(app_id_or_app_name, release_id_or_release_version) end |
#list(app_id_or_app_name) ⇒ Object
List existing releases.
1208 1209 1210 |
# File 'lib/platform-api/client.rb', line 1208 def list(app_id_or_app_name) @client.release.list(app_id_or_app_name) end |
#rollback(app_id_or_app_name, body) ⇒ Object
Rollback to an existing release.
1224 1225 1226 |
# File 'lib/platform-api/client.rb', line 1224 def rollback(app_id_or_app_name, body) @client.release.rollback(app_id_or_app_name, body) end |