Hexoku.API.Releases

A release represents a combination of code, config vars and add-ons for an app on Heroku.

Attributes

id
unique identifier of item generated by Heroku
description
description of changes in this release
slug
slug running in this release
slug:id
unique identifier of slug
user:email
email address of account
user:id
unique identifier of user
version
unique version assigned to the release
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, slug, description \\ "Released using Hexoku")

Create new release. The API cannot be used to create releases on Bamboo apps

info(client, app, release)

Info for existing release

list(client, app)

List existing releases

rollback(client, app, release)

Rollback to an existing release

Functions

create(client, app, slug, description \\ "Released using Hexoku")

Create new release. The API cannot be used to create releases on Bamboo apps.

Examples

client |> Hexoku.API.Release.create("myapp", "01234567-89ab-cdef-0123-456789abcdef", "Added new feature")
Source
info(client, app, release)

Specs:

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

Info for existing release.

Examples

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

Specs:

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

List existing releases.

Examples

client |> Hexoku.API.Release.list("cedar")
Source
rollback(client, app, release)

Specs:

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

Rollback to an existing release.

Examples

client |> Hexoku.API.Release.rollback("myapp", "01234567-89ab-cdef-0123-456789abcdef")
Source