distillery v2.0.8 Mix.Releases.Assembler View Source

This module is responsible for assembling a release based on a Mix.Releases.Config struct. It creates the release directory, copies applications, and generates release-specific files required by :systools and :release_handler.

Link to this section Summary

Functions

This function takes a Config struct and assembles the release

Link to this section Functions

Link to this function apply_environment(r, e) View Source
apply_environment(Mix.Releases.Release.t(), Mix.Releases.Environment.t()) ::
  {:ok, Mix.Releases.Release.t()} | {:error, term()}
Link to this function assemble(config) View Source
assemble(Mix.Releases.Config.t()) ::
  {:ok, Mix.Releases.Release.t()} | {:error, term()}

This function takes a Config struct and assembles the release.

Note: This operation has side-effects! It creates files, directories, copies files from other filesystem locations. If failures occur, no cleanup of files/directories is performed. However, all files/directories created by this function are scoped to the current project’s rel directory, and cannot impact the filesystem outside of this directory.

Link to this function validate_configuration(release) View Source
validate_configuration(Mix.Releases.Release.t()) :: :ok | {:error, term()}