Class: PlatformAPI::Release

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(client) ⇒ Release

Returns a new instance of Release.



4031
4032
4033
# File 'lib/platform-api/client.rb', line 4031

def initialize(client)
  @client = client
end

Instance Method Details

#create(app_id_or_app_name, body = {}) ⇒ Object



4071
4072
4073
# File 'lib/platform-api/client.rb', line 4071

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



4045
4046
4047
# File 'lib/platform-api/client.rb', line 4045

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



4057
4058
4059
# File 'lib/platform-api/client.rb', line 4057

def list(app_id_or_app_name)
  @client.release.list(app_id_or_app_name)
end

#rollback(app_id_or_app_name, body = {}) ⇒ Object



4085
4086
4087
# File 'lib/platform-api/client.rb', line 4085

def rollback(app_id_or_app_name, body = {})
  @client.release.rollback(app_id_or_app_name, body)
end