Mix v1.3.4 Mix.Local.Installer behaviour View Source

This module implements pieces of functionality shared by the archive- and escript-related tasks.

Link to this section Summary

Functions

Common implementation of installation for archives and escripts

Prints a list of items in a uniform way. Used for printing the list of installed archives and escripts

A common implementation for uninstalling archives and scripts

Callbacks

Checks that the argument given to install is supported by the respective module

Returns a list of already installed version of the same archive or escript

The installation itself

Link to this section Functions

Link to this function install(arg, argv, switches) View Source
install({module, atom}, OptionParser.argv, Keyword.t) :: boolean

Common implementation of installation for archives and escripts.

Relies on a few callbacks provided by respective callback modules for customizing certain steps in the installation process.

Link to this function uninstall(type, argv) View Source
uninstall(atom, OptionParser.argv) :: boolean

A common implementation for uninstalling archives and scripts.

Link to this section Callbacks

Link to this callback check_path_or_url(arg0) View Source
check_path_or_url(String.t) :: :ok | {:error, String.t}

Checks that the argument given to install is supported by the respective module.

Link to this callback find_previous_versions(arg0, arg1) View Source
find_previous_versions(String.t, Path.t) :: [Path.t]

Returns a list of already installed version of the same archive or escript.

Link to this callback install(dest, contents, previous) View Source
install(dest :: Path.t, contents :: binary, previous :: [Path.t]) :: :ok

The installation itself.