Closed renatomassaro closed 6 years ago
:regenerate
and :fail
actions have been merged into :restart
.
PR #383 solves this in a scalable way, but I've postponed the creation of more specific listeners like handle_file_loss
, handle_file_unavailability
, handle_log_loss
, handle_log_misedit
etc.
Possible interface:
handle_file_loss cracker.file_id
which translates to:
regenerate/2
The full signature, which allows for custom logic, is something like:
The end result is the same: the
regenerate/2
is called.regenerate
must be able to:Except for the helper
handle_file_loss
, the listener interface described above is already implemented. Now it's just a matter of figuring out how to create theregenerate/2
method in a maintainable way.