distillery v2.1.1 Distillery.Releases.Release View Source
Represents metadata about a release
Link to this section Summary
Functions
Gets a list of {app, vsn} tuples for the current release.
Get the path to which the release tarball will be output
Get the path to which release binaries will be output
Returns true if the release is executable
Load a fully configured Release object given a release name and environment name.
Returns a list of all code_paths of all applications included in the release
Get the path to which compiled applications will be output
Creates a new Release with the given name, version, and applications.
Converts a Release struct to a release resource structure.
Get the path to which versioned release data will be output
Link to this section Types
app_resource()
View Source
app_resource() ::
{atom(), app_version :: charlist()}
| {atom(), app_version :: charlist(), Distillery.Releases.App.start_type()}
app_resource() :: {atom(), app_version :: charlist()} | {atom(), app_version :: charlist(), Distillery.Releases.App.start_type()}
resource()
View Source
resource() ::
{:release, {name :: charlist(), version :: charlist()},
{:erts, erts_version :: charlist()}, [app_resource()]}
resource() :: {:release, {name :: charlist(), version :: charlist()}, {:erts, erts_version :: charlist()}, [app_resource()]}
t()
View Source
t() :: %Distillery.Releases.Release{
applications: [
atom()
| {atom(), Distillery.Releases.App.start_type()}
| Distillery.Releases.App.t()
],
env: atom(),
is_upgrade: boolean(),
name: atom(),
profile: Distillery.Releases.Profile.t(),
resolved_overlays: [Distillery.Releases.Overlays.overlay()],
upgrade_from: nil | String.t() | :latest,
version: String.t()
}
t() :: %Distillery.Releases.Release{ applications: [ atom() | {atom(), Distillery.Releases.App.start_type()} | Distillery.Releases.App.t() ], env: atom(), is_upgrade: boolean(), name: atom(), profile: Distillery.Releases.Profile.t(), resolved_overlays: [Distillery.Releases.Overlays.overlay()], upgrade_from: nil | String.t() | :latest, version: String.t() }
Link to this section Functions
apps(release)
View Source
apps(t()) :: [Distillery.Releases.App.t()] | {:error, term()}
apps(t()) :: [Distillery.Releases.App.t()] | {:error, term()}
Gets a list of {app, vsn} tuples for the current release.
An optional second parameter enables/disables debug logging of discovered apps.
archive_path(r) View Source
Get the path to which the release tarball will be output
bin_path(release) View Source
Get the path to which release binaries will be output
executable?(release) View Source
Returns true if the release is executable
get(name, env \\ :default, opts \\ []) View Source
Load a fully configured Release object given a release name and environment name.
get_code_paths(release) View Source
Returns a list of all code_paths of all applications included in the release
lib_path(release) View Source
Get the path to which compiled applications will be output
new(name, version, apps \\ []) View Source
Creates a new Release with the given name, version, and applications.
to_resource(release) View Source
Converts a Release struct to a release resource structure.
The format of release resources is documented in the Erlang manual
version_path(r) View Source
Get the path to which versioned release data will be output