Class: PlatformAPI::Build
- Inherits:
-
Object
- Object
- PlatformAPI::Build
- Defined in:
- lib/platform-api/client.rb
Overview
A build represents the process of transforming a code tarball into a slug
Instance Method Summary collapse
-
#cancel(app_id_or_app_name, build_id) ⇒ Object
Cancel running build.
-
#create(app_id_or_app_name, body = {}) ⇒ Object
Create a new build.
-
#delete_cache(app_id_or_app_name) ⇒ Object
Destroy a build cache.
-
#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.
1525 1526 1527 |
# File 'lib/platform-api/client.rb', line 1525 def initialize(client) @client = client end |
Instance Method Details
#cancel(app_id_or_app_name, build_id) ⇒ Object
Cancel running build.
1563 1564 1565 |
# File 'lib/platform-api/client.rb', line 1563 def cancel(app_id_or_app_name, build_id) @client.build.cancel(app_id_or_app_name, build_id) end |
#create(app_id_or_app_name, body = {}) ⇒ Object
Create a new build.
1533 1534 1535 |
# File 'lib/platform-api/client.rb', line 1533 def create(app_id_or_app_name, body = {}) @client.build.create(app_id_or_app_name, body) end |
#delete_cache(app_id_or_app_name) ⇒ Object
Destroy a build cache.
1555 1556 1557 |
# File 'lib/platform-api/client.rb', line 1555 def delete_cache(app_id_or_app_name) @client.build.delete_cache(app_id_or_app_name) end |
#info(app_id_or_app_name, build_id) ⇒ Object
Info for existing build.
1541 1542 1543 |
# File 'lib/platform-api/client.rb', line 1541 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.
1548 1549 1550 |
# File 'lib/platform-api/client.rb', line 1548 def list(app_id_or_app_name) @client.build.list(app_id_or_app_name) end |