diff options
author | Eric <[email protected]> | 2013-01-31 15:26:30 -0800 |
---|---|---|
committer | Eric <[email protected]> | 2013-01-31 15:26:30 -0800 |
commit | 8b43038c86a2b4d7329434dab85dd5aac17fc9fe (patch) | |
tree | 3a1924bf355644f4809602fafa4d80ddf6fbd3b5 /src/rcl_release.erl | |
parent | 367d9fdf1d577dd67990cdd4ad4480ba1130bc92 (diff) | |
download | relx-8b43038c86a2b4d7329434dab85dd5aac17fc9fe.tar.gz relx-8b43038c86a2b4d7329434dab85dd5aac17fc9fe.tar.bz2 relx-8b43038c86a2b4d7329434dab85dd5aac17fc9fe.zip |
support release discovery in relcool along with app discovery
Diffstat (limited to 'src/rcl_release.erl')
-rw-r--r-- | src/rcl_release.erl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/rcl_release.erl b/src/rcl_release.erl index 8cd3033..ea20f1f 100644 --- a/src/rcl_release.erl +++ b/src/rcl_release.erl @@ -32,6 +32,7 @@ realize/3, applications/1, application_details/1, + application_details/2, realized/1, metadata/1, format/1, @@ -134,12 +135,18 @@ applications(#release_t{applications=Apps}) -> Apps. %% @doc this gives the rcl_app_info objects representing the applications in -%% this release. These can only be populated by the 'realize' call in this -%% module. +%% this release. These should only be populated by the 'realize' call in this +%% module or by reading an existing rel file. -spec application_details(t()) -> [rcl_app_info:t()]. application_details(#release_t{app_detail=App}) -> App. +%% @doc this is only expected to be called by a process building a new release +%% from an existing rel file. +-spec application_details(t(), [rcl_app_info:t()]) -> t(). +application_details(Release, AppDetail) -> + Release#release_t{app_detail=AppDetail}. + -spec realized(t()) -> boolean(). realized(#release_t{realized=Realized}) -> Realized. |