summaryrefslogtreecommitdiff
path: root/src/rebar_prv_release.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_prv_release.erl')
-rw-r--r--src/rebar_prv_release.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rebar_prv_release.erl b/src/rebar_prv_release.erl
index f94f90d..982b392 100644
--- a/src/rebar_prv_release.erl
+++ b/src/rebar_prv_release.erl
@@ -40,6 +40,9 @@ do(State) ->
[?DEFAULT_CHECKOUTS_DIR, DepsDir | ProjectAppDirs]),
OutputDir = filename:join(rebar_dir:base_dir(State), ?DEFAULT_RELEASE_DIR),
AllOptions = string:join(["release" | Options], " "),
+ Cwd = rebar_state:dir(State),
+ Providers = rebar_state:providers(State),
+ rebar_hooks:run_all_hooks(Cwd, pre, ?PROVIDER, Providers, State),
try
case rebar_state:get(State, relx, []) of
[] ->
@@ -52,6 +55,7 @@ do(State) ->
,{output_dir, OutputDir}
,{caller, Caller}], AllOptions)
end,
+ rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State),
{ok, State}
catch
throw:T ->