aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_state.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2013-10-12 12:29:57 -0500
committerTristan Sloughter <[email protected]>2013-10-12 12:29:57 -0500
commitf50f63f1cb504fc9af4f060b7e7d6c5f1c816d41 (patch)
tree4ef0d3c0b573b0d0c8459010fc37750c7bb6eba0 /src/rlx_state.erl
parent51d787c7e3da7cbfa092b8455706911749f26d45 (diff)
downloadrelx-f50f63f1cb504fc9af4f060b7e7d6c5f1c816d41.tar.gz
relx-f50f63f1cb504fc9af4f060b7e7d6c5f1c816d41.tar.bz2
relx-f50f63f1cb504fc9af4f060b7e7d6c5f1c816d41.zip
add overlay_vars command line arg
Diffstat (limited to 'src/rlx_state.erl')
-rw-r--r--src/rlx_state.erl10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/rlx_state.erl b/src/rlx_state.erl
index 4c6df07..74304cc 100644
--- a/src/rlx_state.erl
+++ b/src/rlx_state.erl
@@ -134,9 +134,13 @@ new(PropList, Targets)
upfrom = proplists:get_value(upfrom, PropList, undefined),
default_configured_release={proplists:get_value(relname, PropList, undefined),
proplists:get_value(relvsn, PropList, undefined)}},
- rlx_state:put(create_logic_providers(State0),
- default_libs,
- proplists:get_value(default_libs, PropList, true)).
+ State1 = rlx_state:put(create_logic_providers(State0),
+ default_libs,
+ proplists:get_value(default_libs, PropList, true)),
+
+ rlx_state:put(create_logic_providers(State1),
+ overlay_vars,
+ proplists:get_value(overlay_vars, PropList, [])).
%% @doc the actions targeted for this system
-spec actions(t()) -> [action()].