diff options
author | Jordan Wilberding <[email protected]> | 2015-01-31 16:24:06 -0800 |
---|---|---|
committer | Jordan Wilberding <[email protected]> | 2015-01-31 16:24:06 -0800 |
commit | 5a0d655eb52b45a8d382d6b75b1061e3025614ed (patch) | |
tree | 6b5e7e30af04d482490f564024e8027cec99b88f /src/rlx_state.erl | |
parent | 3a6b64302bd05441b942da56f5f5deed9b0c58b0 (diff) | |
parent | 292eea4c105adb03e0745468db6bb4948e6df98d (diff) | |
download | relx-5a0d655eb52b45a8d382d6b75b1061e3025614ed.tar.gz relx-5a0d655eb52b45a8d382d6b75b1061e3025614ed.tar.bz2 relx-5a0d655eb52b45a8d382d6b75b1061e3025614ed.zip |
Merge pull request #307 from tsloughter/master
Mainly exclude_apps
Diffstat (limited to 'src/rlx_state.erl')
-rw-r--r-- | src/rlx_state.erl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rlx_state.erl b/src/rlx_state.erl index f21b682..3bd818a 100644 --- a/src/rlx_state.erl +++ b/src/rlx_state.erl @@ -36,6 +36,8 @@ overrides/2, skip_apps/1, skip_apps/2, + exclude_apps/1, + exclude_apps/2, debug_info/1, debug_info/2, goals/1, @@ -104,6 +106,7 @@ sys_config :: file:filename() | undefined, overrides=[] :: [{AppName::atom(), Directory::file:filename()}], skip_apps=[] :: [AppName::atom()], + exclude_apps=[] :: [AppName::atom()], debug_info=keep :: keep | strip, configured_releases :: releases(), realized_releases :: releases(), @@ -186,6 +189,15 @@ skip_apps(#state_t{skip_apps=Apps}) -> skip_apps(State, SkipApps) -> State#state_t{skip_apps=SkipApps}. +-spec exclude_apps(t()) -> [AppName::atom()]. +exclude_apps(#state_t{exclude_apps=Apps}) -> + Apps. + +%% @doc the application overrides for the system +-spec exclude_apps(t(), [AppName::atom()]) -> t(). +exclude_apps(State, SkipApps) -> + State#state_t{exclude_apps=SkipApps}. + -spec debug_info(t()) -> keep | strip. debug_info(#state_t{debug_info=DebugInfo}) -> DebugInfo. |