diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-11-10 20:40:56 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-11-10 20:40:56 -0600 |
commit | 6cae428058eb433864538f2e0c4a8fd5dd432f1c (patch) | |
tree | 8fb31a81993103476932550bc309ec0f4dbe1bce /src/rebar_utils.erl | |
parent | 768af3b9060a8234af03e24a7fb31c8bd5d32471 (diff) |
use CONFIG_DIR of rebar3 for config directories
Diffstat (limited to 'src/rebar_utils.erl')
-rw-r--r-- | src/rebar_utils.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index bd0c8c2..3309c24 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -26,7 +26,8 @@ %% ------------------------------------------------------------------- -module(rebar_utils). --export([droplast/1, +-export([home_dir/0, + droplast/1, filtermap/2, get_cwd/0, is_arch/1, @@ -66,6 +67,10 @@ %% Public API %% ==================================================================== +home_dir() -> + {ok, [[Home]]} = init:get_argument(home), + Home. + droplast(L) -> lists:reverse(tl(lists:reverse(L))). |