diff options
author | Jordan Wilberding <[email protected]> | 2013-10-16 20:25:46 -0700 |
---|---|---|
committer | Jordan Wilberding <[email protected]> | 2013-10-16 20:25:46 -0700 |
commit | e149dfd360e313a9c0b0d2301b49d6137e0b40e6 (patch) | |
tree | 7d28d16c878852133e4312e553744d577624e452 /src/rlx_state.erl | |
parent | ac1435aeab0e16f3a22428e95b8d895f32917629 (diff) | |
parent | 2e6c1d0f1e8e8e6dd913b8a500cf3388c96acd10 (diff) | |
download | relx-e149dfd360e313a9c0b0d2301b49d6137e0b40e6.tar.gz relx-e149dfd360e313a9c0b0d2301b49d6137e0b40e6.tar.bz2 relx-e149dfd360e313a9c0b0d2301b49d6137e0b40e6.zip |
Merge pull request #77 from tsloughter/master
add include_src option to config file, default true. This closes #15
Diffstat (limited to 'src/rlx_state.erl')
-rw-r--r-- | src/rlx_state.erl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rlx_state.erl b/src/rlx_state.erl index 81f9fca..4e76a3f 100644 --- a/src/rlx_state.erl +++ b/src/rlx_state.erl @@ -63,6 +63,8 @@ caller/2, dev_mode/1, dev_mode/2, + include_src/1, + include_src/2, upfrom/1, format/1, format/2]). @@ -91,6 +93,7 @@ configured_releases :: releases(), realized_releases :: releases(), dev_mode=false :: boolean(), + include_src=true :: boolean(), upfrom :: string() | binary() | undefined, config_values :: ec_dictionary:dictionary(Key::atom(), Value::term())}). @@ -328,6 +331,13 @@ dev_mode(#state_t{dev_mode=DevMode}) -> dev_mode(S, DevMode) -> S#state_t{dev_mode=DevMode}. +-spec include_src(t()) -> boolean(). +include_src(#state_t{include_src=IncludeSrc}) -> + IncludeSrc. + +-spec include_src(t(), boolean()) -> t(). +include_src(S, IncludeSrc) -> + S#state_t{include_src=IncludeSrc}. -spec upfrom(t()) -> string() | binary() | undefined. upfrom(#state_t{upfrom=UpFrom}) -> |