A wrapper around the pipelines of Heroku
The package can be installed by adding heroku_scripts to your list of dependencies in mix.exs:
def deps do
[
{:heroku_scripts, "~> 0.0.5", only: dev}
]
endYou can run your mix tasks with the following line. Where pipeline_name should
be your name of your pipeline in heroku. The stage should be the stage that you want to target (the defaults are "review", "staging" and "production"). And YourTask should be replaced by the mix task you want to run.
# These arguments are required
$ mix PipelineTasks app_name stage YourTask
# With extra options
$ mix PipelineTasks app_name stage YourTask waiting_time=30000 number_of_processes=2Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/heroku_scripts.