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.
-
#disable_acm(app_id_or_app_name) ⇒ Object
Disable ACM flag for an app.
-
#enable_acm(app_id_or_app_name) ⇒ Object
Enable ACM flag for an 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.
-
#list_owned_and_collaborated(account_email_or_account_id_or_account_self) ⇒ Object
List owned and collaborated apps (excludes team apps).
-
#refresh_acm(app_id_or_app_name) ⇒ Object
Refresh ACM for an app.
-
#update(app_id_or_app_name, body = {}) ⇒ Object
Update an existing app.
Constructor Details
#initialize(client) ⇒ App
Returns a new instance of App.
1421 1422 1423 |
# File 'lib/platform-api/client.rb', line 1421 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new app.
1428 1429 1430 |
# File 'lib/platform-api/client.rb', line 1428 def create(body = {}) @client.app.create(body) end |
#delete(app_id_or_app_name) ⇒ Object
Delete an existing app.
1435 1436 1437 |
# File 'lib/platform-api/client.rb', line 1435 def delete(app_id_or_app_name) @client.app.delete(app_id_or_app_name) end |
#disable_acm(app_id_or_app_name) ⇒ Object
Disable ACM flag for an app
1476 1477 1478 |
# File 'lib/platform-api/client.rb', line 1476 def disable_acm(app_id_or_app_name) @client.app.disable_acm(app_id_or_app_name) end |
#enable_acm(app_id_or_app_name) ⇒ Object
Enable ACM flag for an app
1469 1470 1471 |
# File 'lib/platform-api/client.rb', line 1469 def enable_acm(app_id_or_app_name) @client.app.enable_acm(app_id_or_app_name) end |
#info(app_id_or_app_name) ⇒ Object
Info for existing app.
1442 1443 1444 |
# File 'lib/platform-api/client.rb', line 1442 def info(app_id_or_app_name) @client.app.info(app_id_or_app_name) end |
#list ⇒ Object
List existing apps.
1447 1448 1449 |
# File 'lib/platform-api/client.rb', line 1447 def list() @client.app.list() end |
#list_owned_and_collaborated(account_email_or_account_id_or_account_self) ⇒ Object
List owned and collaborated apps (excludes team apps).
1454 1455 1456 |
# File 'lib/platform-api/client.rb', line 1454 def list_owned_and_collaborated(account_email_or_account_id_or_account_self) @client.app.list_owned_and_collaborated(account_email_or_account_id_or_account_self) end |
#refresh_acm(app_id_or_app_name) ⇒ Object
Refresh ACM for an app
1483 1484 1485 |
# File 'lib/platform-api/client.rb', line 1483 def refresh_acm(app_id_or_app_name) @client.app.refresh_acm(app_id_or_app_name) end |
#update(app_id_or_app_name, body = {}) ⇒ Object
Update an existing app.
1462 1463 1464 |
# File 'lib/platform-api/client.rb', line 1462 def update(app_id_or_app_name, body = {}) @client.app.update(app_id_or_app_name, body) end |