aboutsummaryrefslogtreecommitdiffstats
path: root/src/rcl_state.erl
diff options
context:
space:
mode:
authorEric <[email protected]>2012-09-17 12:06:38 -0500
committerEric <[email protected]>2012-09-18 10:05:00 -0700
commitd084ff5556a67c1f93deddc50969362b2f2a5e6c (patch)
tree03abd006dad059dcababa94ea58a8c5251fa3938 /src/rcl_state.erl
parentcbf20abdcb99009d9b93e34f93a9a2c55acbf958 (diff)
downloadrelx-d084ff5556a67c1f93deddc50969362b2f2a5e6c.tar.gz
relx-d084ff5556a67c1f93deddc50969362b2f2a5e6c.tar.bz2
relx-d084ff5556a67c1f93deddc50969362b2f2a5e6c.zip
support available apps as rcl_app_info instead of generic descriptor
Diffstat (limited to 'src/rcl_state.erl')
-rw-r--r--src/rcl_state.erl9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rcl_state.erl b/src/rcl_state.erl
index d16eadf..97d4e3d 100644
--- a/src/rcl_state.erl
+++ b/src/rcl_state.erl
@@ -46,7 +46,6 @@
-export_type([t/0,
- app_descriptor/0,
releases/0,
cmd_args/0]).
@@ -56,7 +55,7 @@
config_files=[] :: [file:filename()],
goals=[] :: [depsolver:constraint()],
providers = [] :: [rcl_provider:t()],
- available_apps = [] :: [app_descriptor()],
+ available_apps = [] :: [rcl_app_info:t()],
default_release :: {rcl_release:name(), rcl_release:vsn()},
releases :: ec_dictionary:dictionary({ReleaseName::atom(),
ReleaseVsn::string()},
@@ -68,8 +67,6 @@
%% types
%%============================================================================
--type app_descriptor() :: {rcl_release:app_name(), rcl_release:app_vsn(), file:name()}.
-
-type releases() :: ec_dictionary:dictionary({rcl_release:name(),
rcl_release:vsn()},
rcl_release:t()).
@@ -145,11 +142,11 @@ default_release(#state_t{default_release=Def}) ->
default_release(M, Name, Vsn) ->
M#state_t{default_release={Name, Vsn}}.
--spec available_apps(t()) -> [app_descriptor()].
+-spec available_apps(t()) -> [rcl_app_info:t()].
available_apps(#state_t{available_apps=Apps}) ->
Apps.
--spec available_apps(t(), [app_descriptor()]) -> t().
+-spec available_apps(t(), [rcl_app_info:t()]) -> t().
available_apps(M, NewApps) ->
M#state_t{available_apps=NewApps}.