diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2010-06-09 14:07:34 -0600 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2010-06-09 14:07:34 -0600 |
commit | 6efd2516ce6b6d5ed2560e2ac28864a45472d85f (patch) | |
tree | 1260e54f33df8d0bd7f015acce934b9cfff66e9f /src | |
parent | e66585789d8e7da82ce171c63964d5650cf2e75f (diff) |
Re-add support for delete-deps
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_deps.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl index d9819f6..5833f29 100644 --- a/src/rebar_deps.erl +++ b/src/rebar_deps.erl @@ -32,7 +32,8 @@ postprocess/2, compile/2, 'check-deps'/2, - 'get-deps'/2]). + 'get-deps'/2, + 'delete-deps'/2]). -record(dep, { dir, @@ -104,6 +105,9 @@ compile(Config, AppFile) -> erlang:put(?MODULE, [D#dep.dir || D <- PulledDeps]), ok. +'delete-deps'(Config, _) -> + rebar_file_utils:rm_rf(get_deps_dir()). + %% =================================================================== %% Internal functions @@ -154,8 +158,6 @@ find_deps([Other | _Rest], _Acc) -> [Other, rebar_utils:get_cwd()]). - - require_source_engine(Source) -> case source_engine_avail(Source) of true -> |