distillery v2.1.1 Distillery.Releases.Checks behaviour View Source
This module defines a behavior for, and orchestrator of, static analysis checks to be performed at release-time. These checks are intended to operate on the fully reified release configuration and metadata, and return warnings, errors, or ok for the release assembler to react to.
In most cases, warnings will be printed but assembly will continue; errors will be printed but will terminate assembly, and a successful check will be printed only if verbose logging is enabled.
Link to this section Summary
Functions
Returns a list of all checks available to be applied.
Runs all default and configured checks against the given release.
Runs all of the given checks, in the given order.
Link to this section Types
warning()
View Source
warning() :: String.t()
warning() :: String.t()
Link to this section Functions
list() View Source
Returns a list of all checks available to be applied.
run(release)
View Source
run(Distillery.Releases.Release.t()) :: :ok | {:error, term()}
run(Distillery.Releases.Release.t()) :: :ok | {:error, term()}
Runs all default and configured checks against the given release.
run(checks, release)
View Source
run([module()], Distillery.Releases.Release.t()) :: :ok | {:error, term()}
run([module()], Distillery.Releases.Release.t()) :: :ok | {:error, term()}
Runs all of the given checks, in the given order.
Link to this section Callbacks
run(arg1)
View Source
run(Distillery.Releases.Release.t()) ::
:ok | {:ok, warning :: String.t()} | {:error, term()}
run(Distillery.Releases.Release.t()) :: :ok | {:ok, warning :: String.t()} | {:error, term()}