From c3e728afb67101480d0c7b52c51bc522f08fb08f Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 10 Dec 2012 15:04:12 -0500 Subject: if no config is specified search for a `relcool.config` in the path --- src/rcl_state.erl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/rcl_state.erl') 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. -- cgit v1.2.3