HerokuScripts v0.0.3 HerokuScripts View Source

A wrapper around some heroku cli commands to run tasks on all environments of the heroku pipeline

Link to this section Summary

Functions

Runs the task that’s given on the pipeline and the given stage. The name of the pipeline and stage can be found at Heroku. The default stages are "review", "staging" and "production"

Link to this section Functions

Link to this function run_pipeline_task(pipeline, pipe, task, opts \\ %{}) View Source

Runs the task that’s given on the pipeline and the given stage. The name of the pipeline and stage can be found at Heroku. The default stages are "review", "staging" and "production"

The optional ‘waiting_time’ argument is the amounds of miliseconds it waits untill the task is killed. The waiting_time is set per environment.

The number_of_processes is the amount of tasks you want to run simultaneously, keep in mind that each task will open its own connection with Heroku.

Examples

iex> HerokuScripts.run_pipeline_task("app_name", "production, "GiveRaiseToPeople")
:ok