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

Returns a new instance of Build.



2089
2090
2091
# File 'lib/platform-api/client.rb', line 2089

def initialize(client)
  @client = client
end

Instance Method Details

#cancel(app_id_or_app_name, build_id) ⇒ Object



2155
2156
2157
# File 'lib/platform-api/client.rb', line 2155

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



2103
2104
2105
# File 'lib/platform-api/client.rb', line 2103

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



2141
2142
2143
# File 'lib/platform-api/client.rb', line 2141

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



2117
2118
2119
# File 'lib/platform-api/client.rb', line 2117

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



2129
2130
2131
# File 'lib/platform-api/client.rb', line 2129

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