Class: SnapDeploy::Provider::Heroku::API::BuildpackInstallation
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::BuildpackInstallation
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
An buildpack installtion represents a buildpack that will be run against an app.
Instance Method Summary collapse
-
#initialize(client) ⇒ BuildpackInstallation
constructor
A new instance of BuildpackInstallation.
-
#list(app_id_or_app_name) ⇒ Object
Info for existing buildpack installations.
-
#update(app_id_or_app_name, body) ⇒ Object
Update an app’s buildpack installations.
Constructor Details
#initialize(client) ⇒ BuildpackInstallation
Returns a new instance of BuildpackInstallation.
695 696 697 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 695 def initialize(client) @client = client end |
Instance Method Details
#list(app_id_or_app_name) ⇒ Object
Info for existing buildpack installations.
710 711 712 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 710 def list(app_id_or_app_name) @client.buildpack_installation.list(app_id_or_app_name) end |
#update(app_id_or_app_name, body) ⇒ Object
Update an app’s buildpack installations.
703 704 705 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 703 def update(app_id_or_app_name, body) @client.buildpack_installation.update(app_id_or_app_name, body) end |