aboutsummaryrefslogtreecommitdiffstats
path: root/src/relcool.erl
diff options
context:
space:
mode:
authorEric <[email protected]>2012-12-10 15:03:49 -0500
committerEric <[email protected]>2012-12-10 15:07:24 -0500
commit902d2f4718f4eec674252cb5643c0dd137d741e0 (patch)
tree83dc520dbc2910a152e2d0d9ba7170444891d31d /src/relcool.erl
parent4d21d2576afead307717d8f61a3904826f8df0e6 (diff)
downloadrelx-902d2f4718f4eec674252cb5643c0dd137d741e0.tar.gz
relx-902d2f4718f4eec674252cb5643c0dd137d741e0.tar.bz2
relx-902d2f4718f4eec674252cb5643c0dd137d741e0.zip
support a setable root directory for the system
Diffstat (limited to 'src/relcool.erl')
-rw-r--r--src/relcool.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/relcool.erl b/src/relcool.erl
index d5ddbc5..c6747ca 100644
--- a/src/relcool.erl
+++ b/src/relcool.erl
@@ -126,6 +126,8 @@ run_providers(State0) ->
Err = {error, _} ->
Err;
{ok, State1} ->
+ RootDir = rcl_state:root_dir(State1),
+ ok = file:set_cwd(RootDir),
Providers = rcl_state:providers(State1),
Result = run_providers(ConfigProvider, Providers, State1),
handle_output(State1, rcl_state:caller(State1), Result)