distillery v2.1.1 Distillery.Releases.Assembler View Source
This module is responsible for assembling a release based on a Distillery.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(r, e)
View Source
apply_environment(
Distillery.Releases.Release.t(),
Distillery.Releases.Environment.t()
) :: Distillery.Releases.Release.t()
apply_environment( Distillery.Releases.Release.t(), Distillery.Releases.Environment.t() ) :: Distillery.Releases.Release.t()
Link to this function
assemble(config)
View Source
assemble(config)
View Source
assemble(Distillery.Releases.Config.t()) ::
{:ok, Distillery.Releases.Release.t()} | {:error, term()}
assemble(Distillery.Releases.Config.t()) :: {:ok, Distillery.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.