taskinator
taskinator copied to clipboard
Add Process Hooks
Adds before_started, after_completed and after_failed functionality.
E.g.
module MyProcess
extend Taskinator::Definition
# defines a process
define_process do
# define task to execute before process starts
before_started :slack_notification
# tasks, sub-process, etc.
# define task to execute on completion
after_completed :further_process
# define task to execute on failure
after_failed :email_notification
end
def slack_notification
# ...
end
def further_process
# ...
end
def email_notification
# ...
end
end