aboutsummaryrefslogtreecommitdiffstats
path: root/src/relcool.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2012-12-10 12:19:36 -0800
committerTristan Sloughter <[email protected]>2012-12-10 12:19:36 -0800
commit25483b93b6f179b29742451ac65d367ab3b7ca7e (patch)
treef1fe9d5c6ddcf6626c84b9121ce1d334d776556e /src/relcool.erl
parent69e6bcb71b8ce15556621fc94874bce751b50c50 (diff)
parentc3e728afb67101480d0c7b52c51bc522f08fb08f (diff)
downloadrelx-25483b93b6f179b29742451ac65d367ab3b7ca7e.tar.gz
relx-25483b93b6f179b29742451ac65d367ab3b7ca7e.tar.bz2
relx-25483b93b6f179b29742451ac65d367ab3b7ca7e.zip
Merge pull request #16 from ericbmerritt/next
default relcool.config support
Diffstat (limited to 'src/relcool.erl')
-rw-r--r--src/relcool.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/relcool.erl b/src/relcool.erl
index 0d75c62..c6747ca 100644
--- a/src/relcool.erl
+++ b/src/relcool.erl
@@ -93,7 +93,7 @@ opt_spec_list() ->
"usually the OTP"},
{output_dir, $o, "output-dir", string, "The output directory for the release. This is `./` by default."},
{lib_dir, $l, "lib-dir", string, "Additional dirs that should be searched for OTP Apps"},
- {log_level, $V, "verbose", {integer, 2}, "Verbosity level, maybe between 0 and 2"}
+ {log_level, $V, "verbose", {integer, 0}, "Verbosity level, maybe between 0 and 2"}
].
-spec format_error(Reason::term()) -> iolist().
@@ -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)