Class: SnapDeploy::Provider::Heroku::API::Build
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::Build
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
A build represents the process of transforming a code tarball into a slug
Instance Method Summary collapse
-
#create(app_id_or_app_name, body) ⇒ Object
Create a new build.
-
#info(app_id_or_app_name, build_id) ⇒ Object
Info for existing build.
-
#initialize(client) ⇒ Build
constructor
A new instance of Build.
-
#list(app_id_or_app_name) ⇒ Object
List existing build.
Constructor Details
#initialize(client) ⇒ Build
Returns a new instance of Build.
665 666 667 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 665 def initialize(client) @client = client end |
Instance Method Details
#create(app_id_or_app_name, body) ⇒ Object
Create a new build.
673 674 675 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 673 def create(app_id_or_app_name, body) @client.build.create(app_id_or_app_name, body) end |
#info(app_id_or_app_name, build_id) ⇒ Object
Info for existing build.
681 682 683 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 681 def info(app_id_or_app_name, build_id) @client.build.info(app_id_or_app_name, build_id) end |
#list(app_id_or_app_name) ⇒ Object
List existing build.
688 689 690 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 688 def list(app_id_or_app_name) @client.build.list(app_id_or_app_name) end |