Mix v1.2.1 Mix.Tasks.Local.Rebar
Fetches a copy of rebar or rebar3 from the given path or url.
It defaults to safely download a rebar copy from
Amazon S3. However, a URL can be given
as argument, usually from an existing local copy of rebar. If not
specified both rebar and rebar3 will be fetched.
The local copy is stored in your MIX_HOME (defaults to ~/.mix).
This version of rebar will be used as required by mix deps.compile.
Command line options
--sha512- checks the archive matches the given sha512 checksumrebar PATH- specify a path or url forrebarrebar3 PATH- specify a path or url forrebar3--force- forces installation without a shell prompt; primarily intended for automation in build systems likemake
Mirrors
If you want to change the default mirror
to use for fetching rebar please set the HEX_CDN environment variable.
Summary
Functions
A task needs to implement run which receives
a list of command line args.
Callback implementation for Mix.Task.run/1.