Class: SnapDeploy::Provider::Heroku::API::AppSetup
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::AppSetup
- Defined in:
- lib/snap_deploy/provider/heroku/api.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
-
#create(body) ⇒ Object
Create a new app setup from a gzipped tar archive containing an app.json manifest file.
-
#info(app_setup_id) ⇒ Object
Get the status of an app setup.
-
#initialize(client) ⇒ AppSetup
constructor
A new instance of AppSetup.
Constructor Details
#initialize(client) ⇒ AppSetup
Returns a new instance of AppSetup.
547 548 549 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 547 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.
554 555 556 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 554 def create(body) @client.app_setup.create(body) end |
#info(app_setup_id) ⇒ Object
Get the status of an app setup.
561 562 563 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 561 def info(app_setup_id) @client.app_setup.info(app_setup_id) end |