summaryrefslogtreecommitdiff
path: root/src/rebar_plugins.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_plugins.erl')
-rw-r--r--src/rebar_plugins.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rebar_plugins.erl b/src/rebar_plugins.erl
index 0fdbc6d..e9ab0b2 100644
--- a/src/rebar_plugins.erl
+++ b/src/rebar_plugins.erl
@@ -3,10 +3,17 @@
-module(rebar_plugins).
--export([]).
+-export([install/1]).
-include("rebar.hrl").
%% ===================================================================
%% Public API
%% ===================================================================
+
+install(State) ->
+ BaseDir = rebar_state:get(State, base_dir, ""),
+ State1 = rebar_state:set(State, base_dir, "plugins"),
+ Plugins = rebar_state:get(State1, plugins, []),
+ {ok, State2} = rebar_prv_install_deps:handle_deps(State1, Plugins),
+ {ok, rebar_state:set(State2, base_dir, BaseDir)}.