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
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
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"}
})