Class: PlatformAPI::Build

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

A build represents the process of transforming a code tarball into build artifacts

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Build



1539
1540
1541
# File 'lib/platform-api/client.rb', line 1539

def initialize(client)
  @client = client
end

Instance Method Details

#cancel(app_id_or_app_name, build_id) ⇒ Object

Cancel running build.



1577
1578
1579
# File 'lib/platform-api/client.rb', line 1577

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.



1547
1548
1549
# File 'lib/platform-api/client.rb', line 1547

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.



1569
1570
1571
# File 'lib/platform-api/client.rb', line 1569

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.



1555
1556
1557
# File 'lib/platform-api/client.rb', line 1555

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.



1562
1563
1564
# File 'lib/platform-api/client.rb', line 1562

def list(app_id_or_app_name)
  @client.build.list(app_id_or_app_name)
end