summaryrefslogtreecommitdiff
path: root/src/rebar_prv_do.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_prv_do.erl')
-rw-r--r--src/rebar_prv_do.erl18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/rebar_prv_do.erl b/src/rebar_prv_do.erl
index 7216813..4bffd04 100644
--- a/src/rebar_prv_do.erl
+++ b/src/rebar_prv_do.erl
@@ -3,7 +3,7 @@
-module(rebar_prv_do).
--behaviour(rebar_provider).
+-behaviour(provider).
-export([init/1,
do/1]).
@@ -19,14 +19,14 @@
-spec init(rebar_state:t()) -> {ok, rebar_state:t()}.
init(State) ->
- State1 = rebar_state:add_provider(State, #provider{name = ?PROVIDER,
- provider_impl = ?MODULE,
- bare = false,
- deps = ?DEPS,
- example = "rebar3 do <task1>, <task2>, ...",
- short_desc = "Higher order provider for running multiple tasks in a sequence.",
- desc = "",
- opts = []}),
+ State1 = rebar_state:add_provider(State, providers:create([{name, ?PROVIDER},
+ {module, ?MODULE},
+ {bare, false},
+ {deps, ?DEPS},
+ {example, "rebar3 do <task1>, <task2>, ..."},
+ {short_desc, "Higher order provider for running multiple tasks in a sequence."},
+ {desc, ""},
+ {opts, []}])),
{ok, State1}.
-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.