Hexoku.API.Slugs

A slug is a snapshot of your application code that is ready to run on the platform.

Attributes

id
unique identifier of slug
blob:method
method to be used to interact with the slug blob
blob:url
URL to interact with the slug blob
buildpack_provided_description
description from buildpack of slug
commit
identification of the code with your version control system (eg: SHA of the git HEAD)
process_types
hash mapping process type names to their respective command
size
size of slug, in bytes
stack:id
unique identifier of stack
stack:name
name of stack
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, payload)

Create a new slug. For more information please refer to Deploying Slugs using the Platform API

info(client, app, slug)

Info for existing slug

Functions

create(client, app, payload)

Specs:

Create a new slug. For more information please refer to Deploying Slugs using the Platform API.

Payload Attributes

process_types required
Dict of process type names to their respective command
buildpack_provided_description
description from buildpack of slug
commit
identification of the code with your version control system (eg: SHA of the git HEAD)
stack
unique identifier or name of stack

Examples

client |> Hexoku.API.Slugs.create("myapp", %{
    buildpack_provided_description: "Ruby/Rack",
    commit: "60883d9e8947a57e04dc9124f25df004866a2051",
    process_types: %{web: "./bin/web -p $PORT"}
})
Source
info(client, app, slug)

Specs:

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

Info for existing slug.

Examples

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