distillery v1.0.0 Mix.Releases.Assembler

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.

Summary

Functions

apply_configuration(release, config)
apply_environment(r, e)
assemble(config)
assemble(Mix.Releases.Config.t) ::
  {:ok, Mix.Releases.Config.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.

select_environment(c)
select_release(c)
validate_configuration(release)