Versioce.PostHook behaviour (Versioce v0.1.1) View Source
Behaviour for post hooks in versioce.
A hook can be defined by simply using Versioce.PostHook
in a module:
defmodule MyProj.Versioce.PreHook do
use Versioce.PostHook
def run(version) do
IO.inspect(version)
end
end
The run/1
function will receive a version that project was bumped to.
It can modify it and make required side-effects but it should return it
as result of one hook is piped into next one.
Link to this section Summary
Link to this section Callbacks
Specs
A hook needs to implement run
which receives
a the new version of the project.
It should return it as well.