summaryrefslogtreecommitdiff
path: root/priv/templates
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-09-20 09:01:03 -0500
committerTristan Sloughter <t@crashfast.com>2014-09-20 09:01:03 -0500
commit51f1cf4aae5a22fe8974edcdf10da4e8a7b05255 (patch)
tree5fc180a8bd15eb9c121fba6600bfd6b67996c7c1 /priv/templates
parent989a1bfe8d991846f81331a94eb65ffc10883cf5 (diff)
install plugins to plugins/
Diffstat (limited to 'priv/templates')
-rw-r--r--priv/templates/plugin.erl.dtl16
1 files changed, 8 insertions, 8 deletions
diff --git a/priv/templates/plugin.erl.dtl b/priv/templates/plugin.erl.dtl
index 3f8c9cd..80a03bb 100644
--- a/priv/templates/plugin.erl.dtl
+++ b/priv/templates/plugin.erl.dtl
@@ -14,14 +14,14 @@
-spec init(rebar_state:t()) -> {ok, rebar_state:t()}.
init(State) ->
- State1 = rebar_state:(State, rebar_provider:create([{name, ?PROVIDER},
- {provider_impl, ?MODULE},
- {bare, false},
- {deps, ?DEPS},
- {example, "rebar {{appid}}"},
- {short_desc, "{{appid}} plugin."},
- {desc, ""},
- {opts, []}])),
+ State1 = rebar_state:add_provider(State, rebar_provider:create([{name, ?PROVIDER},
+ {provider_impl, ?MODULE},
+ {bare, false},
+ {deps, ?DEPS},
+ {example, "rebar {{appid}}"},
+ {short_desc, "{{appid}} plugin."},
+ {desc, ""},
+ {opts, []}])),
{ok, State1}.
-spec do(rebar_state:t()) -> {ok, rebar_state:t()}.