aboutsummaryrefslogtreecommitdiffstats
path: root/src/rcl_state.erl
diff options
context:
space:
mode:
authorEric <[email protected]>2012-12-10 15:04:12 -0500
committerEric <[email protected]>2012-12-10 15:07:25 -0500
commitc3e728afb67101480d0c7b52c51bc522f08fb08f (patch)
treef1fe9d5c6ddcf6626c84b9121ce1d334d776556e /src/rcl_state.erl
parent902d2f4718f4eec674252cb5643c0dd137d741e0 (diff)
downloadrelx-c3e728afb67101480d0c7b52c51bc522f08fb08f.tar.gz
relx-c3e728afb67101480d0c7b52c51bc522f08fb08f.tar.bz2
relx-c3e728afb67101480d0c7b52c51bc522f08fb08f.zip
if no config is specified search for a `relcool.config` in the path
Diffstat (limited to 'src/rcl_state.erl')
-rw-r--r--src/rcl_state.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rcl_state.erl b/src/rcl_state.erl
index d324bf9..bd26a47 100644
--- a/src/rcl_state.erl
+++ b/src/rcl_state.erl
@@ -31,6 +31,7 @@
overrides/2,
goals/1,
config_files/1,
+ config_files/2,
providers/1,
providers/2,
sys_config/1,
@@ -140,6 +141,10 @@ goals(#state_t{goals=TS}) ->
config_files(#state_t{config_files=ConfigFiles}) ->
ConfigFiles.
+-spec config_files(t(), [file:filename()]) -> t().
+config_files(State, ConfigFiles) ->
+ State#state_t{config_files=ConfigFiles}.
+
-spec providers(t()) -> [rcl_provider:t()].
providers(#state_t{providers=Providers}) ->
Providers.