From f50f63f1cb504fc9af4f060b7e7d6c5f1c816d41 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 12 Oct 2013 12:29:57 -0500 Subject: add overlay_vars command line arg --- src/rlx_state.erl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/rlx_state.erl') 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()]. -- cgit v1.2.3