From 0c8fa345950c271d9e479d599ef4d814084818b8 Mon Sep 17 00:00:00 2001 From: Jan Schlosser Date: Fri, 12 Jul 2019 15:13:39 +0200 Subject: [PATCH] Fix `after_cleanup` plugin call --- lib/distillery/releases/plugins/plugin.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/distillery/releases/plugins/plugin.ex b/lib/distillery/releases/plugins/plugin.ex index dc4b0b52..161fd0b0 100644 --- a/lib/distillery/releases/plugins/plugin.ex +++ b/lib/distillery/releases/plugins/plugin.ex @@ -163,7 +163,7 @@ defmodule Distillery.Releases.Plugin do Run the `c:after_cleanup/2` callback of all plugins of `release`. """ @spec after_cleanup(Release.t(), [String.t()]) :: :ok | {:error, term} - def after_cleanup(release, args), do: run(release.profile.plugins, :after_package, args) + def after_cleanup(release, args), do: run(release.profile.plugins, :after_cleanup, args) @spec call(atom(), Release.t()) :: {:ok, term} | {:error, {:plugin, term}} defp call(callback, release) do