Class: PlatformAPI::App
- Inherits:
-
Object
- Object
- PlatformAPI::App
- Defined in:
- lib/platform-api/client.rb
Overview
An app represents the program that you would like to deploy and run on Heroku.
Instance Method Summary collapse
-
#create(body) ⇒ Object
Create a new app.
-
#delete(app_id_or_app_name) ⇒ Object
Delete an existing app.
-
#info(app_id_or_app_name) ⇒ Object
Info for existing app.
-
#initialize(client) ⇒ App
constructor
A new instance of App.
-
#list ⇒ Object
List existing apps.
-
#update(app_id_or_app_name, body) ⇒ Object
Update an existing app.
Constructor Details
#initialize(client) ⇒ App
Returns a new instance of App.
478 479 480 |
# File 'lib/platform-api/client.rb', line 478 def initialize(client) @client = client end |
Instance Method Details
#create(body) ⇒ Object
Create a new app.
485 486 487 |
# File 'lib/platform-api/client.rb', line 485 def create(body) @client.app.create(body) end |
#delete(app_id_or_app_name) ⇒ Object
Delete an existing app.
492 493 494 |
# File 'lib/platform-api/client.rb', line 492 def delete(app_id_or_app_name) @client.app.delete(app_id_or_app_name) end |
#info(app_id_or_app_name) ⇒ Object
Info for existing app.
499 500 501 |
# File 'lib/platform-api/client.rb', line 499 def info(app_id_or_app_name) @client.app.info(app_id_or_app_name) end |
#list ⇒ Object
List existing apps.
504 505 506 |
# File 'lib/platform-api/client.rb', line 504 def list() @client.app.list() end |
#update(app_id_or_app_name, body) ⇒ Object
Update an existing app.
512 513 514 |
# File 'lib/platform-api/client.rb', line 512 def update(app_id_or_app_name, body) @client.app.update(app_id_or_app_name, body) end |