ex_heroku_client v0.1.0 Heroku.Slug

Summary

Functions

Calls POST /apps/#{app_identity}/slugs

Calls GET /apps/#{app_identity}/slugs/#{slug_identity}

Functions

create(app_identity, params)

Calls POST /apps/#{app_identity}/slugs

params is JSON encoded and passed as the request body.

params Schema

{
  "properties": {
    "buildpack_provided_description": {
      "description": "description from buildpack of slug",
      "example": "Ruby/Rack",
      "readOnly": false,
      "type": [
        "null",
        "string"
      ]
    },
    "checksum": {
      "description": "an optional checksum of the slug for verifying its integrity",
      "example": "SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "readOnly": true,
      "type": [
        "null",
        "string"
      ]
    },
    "commit": {
      "description": "identification of the code with your version control system (eg: SHA of the git HEAD)",
      "example": "60883d9e8947a57e04dc9124f25df004866a2051",
      "readOnly": false,
      "type": [
        "null",
        "string"
      ]
    },
    "commit_description": {
      "description": "an optional description of the provided commit",
      "example": "fixed a bug with API documentation",
      "readOnly": false,
      "type": [
        "null",
        "string"
      ]
    },
    "process_types": {
      "additionalProperties": false,
      "description": "hash mapping process type names to their respective command",
      "example": {
        "web": "./bin/web -p $PORT"
      },
      "patternProperties": {
        "^[-\\w]{1,128}$": {
          "type": [
            "string"
          ]
        }
      },
      "properties": {},
      "readOnly": false,
      "type": [
        "object"
      ]
    },
    "stack": {
      "anyOf": [
        {
          "description": "unique name of stack",
          "example": "cedar-14",
          "readOnly": true,
          "type": [
            "string"
          ]
        },
        {
          "description": "unique identifier of stack",
          "example": "01234567-89ab-cdef-0123-456789abcdef",
          "format": "uuid",
          "readOnly": true,
          "type": [
            "string"
          ]
        }
      ]
    }
  },
  "required": [
    "process_types"
  ],
  "type": [
    "object"
  ]
}
get(app_identity, slug_identity)

Calls GET /apps/#{app_identity}/slugs/#{slug_identity}