Skip to content

Commit b42f6a2

Browse files
readme update for before_started
1 parent 1b0a958 commit b42f6a2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,10 @@ module MyProcess
308308
# defines a process
309309
define_process do
310310

311-
# tasks, sub-process, etc.
311+
# define task to execute on before
312+
before_started :slack_notification
313+
314+
# usual tasks, sub-process, etc.
312315

313316
# define task to execute on completion
314317
after_completed :further_process
@@ -318,6 +321,10 @@ module MyProcess
318321

319322
end
320323

324+
def slack_notification
325+
# ...
326+
end
327+
321328
def further_process
322329
# ...
323330
end

0 commit comments

Comments
 (0)