Hexoku.API.Builds

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

Attributes

id
unique identifier of item generated by Heroku
slug
slug created by this build
slug:id
unique identifier of slug
source_blob:url
URL where gzipped tar archive of source code for build was downloaded.
source_blob:version
Version of the gzipped tarball.
status
status of build. ["failed", "pending", "succeeded"]
user:email
email address of account
user:id
unique identifier of user
created_at
when item was created
updated_at
when item was last modified

For more info read the Heroku API Reference

Source

Summary

create(client, app, url, version)

Create a new build

info(client, app, build)

Info for existing build

list(client, app)

List existing builds

Functions

create(client, app, url, version)

Specs:

  • create(Hexoku.Client.t, binary, binary, binary) :: Map.t

Create a new build

Examples

client |> Hexoku.API.Builds.create(
    "myapp",
    "https://example.com/source.tgz?token=xyz",
    "v1.3.0"
)
Source
info(client, app, build)

Specs:

  • info(Hexoku.Client.t, binary, binary) :: Map.t

Info for existing build.

Examples

client |> Hexoku.API.Builds.info("myapp", "01234567-89ab-cdef-0123-456789abcdef")
Source
list(client, app)

Specs:

  • list(Hexoku.Client.t, binary) :: [Map.t]

List existing builds.

Examples

client |> Hexoku.API.Builds.list("myapp")
Source