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
-
#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.
1490 1491 1492 |
# File 'lib/platform-api/client.rb', line 1490 def initialize(client) @client = client end |
Instance Method Details
#create(app_id_or_app_name, body = {}) ⇒ Object
Create a new build.
1498 1499 1500 |
# File 'lib/platform-api/client.rb', line 1498 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.
1520 1521 1522 |
# File 'lib/platform-api/client.rb', line 1520 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.
1506 1507 1508 |
# File 'lib/platform-api/client.rb', line 1506 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.
1513 1514 1515 |
# File 'lib/platform-api/client.rb', line 1513 def list(app_id_or_app_name) @client.build.list(app_id_or_app_name) end |