Class: PlatformAPI::AppSetup

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

An app setup represents an app on Heroku that is setup using an environment, addons, and scripts described in an app.json manifest file.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ AppSetup

Returns a new instance of AppSetup.



1231
1232
1233
# File 'lib/platform-api/client.rb', line 1231

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object

Create a new app setup from a gzipped tar archive containing an app.json manifest file.

Parameters:

  • body:

    the object to pass as the request payload



1238
1239
1240
# File 'lib/platform-api/client.rb', line 1238

def create(body = {})
  @client.app_setup.create(body)
end

#info(app_setup_id) ⇒ Object

Get the status of an app setup.

Parameters:

  • app_setup_id:

    unique identifier of app setup



1245
1246
1247
# File 'lib/platform-api/client.rb', line 1245

def info(app_setup_id)
  @client.app_setup.info(app_setup_id)
end