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.
2009 2010 2011 |
# File 'lib/platform-api/client.rb', line 2009 def initialize(client) @client = client end |
Instance Method Details
#create(app_id_or_app_name, body) ⇒ Object
Create new release.
2032 2033 2034 |
# File 'lib/platform-api/client.rb', line 2032 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.
2017 2018 2019 |
# File 'lib/platform-api/client.rb', line 2017 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.
2024 2025 2026 |
# File 'lib/platform-api/client.rb', line 2024 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.
2040 2041 2042 |
# File 'lib/platform-api/client.rb', line 2040 def rollback(app_id_or_app_name, body) @client.release.rollback(app_id_or_app_name, body) end |