Skip to content

Commit 51a0adc

Browse files
committed
Update doc on #invoke helper
I lost 1hour on this trying to call a task multiple times.. because I didn't notice the __options__ line of the doc. So I thought a documentation change would be nice for others :)
1 parent 595efce commit 51a0adc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ You can add as many variables as needed.
315315
# Helpers
316316

317317
### invoke
318-
Invokes another Rake task.
318+
Invokes another Rake task. By default if the task has already been invoked it will not been executed again (see the `:reenable` option).
319319

320320
Invokes the task given in `task`. Returns nothing.
321321

@@ -324,8 +324,8 @@ invoke :'git:clone'
324324
invoke :restart
325325
~~~
326326

327-
Options:
328-
reenable (bool) - Execute the task even next time.
327+
__Options:__
328+
`:reenable` (bool) - Execute the task even next time. Defaults to `false`
329329

330330
### erb
331331
Evaluates an ERB block in the current scope and returns a string.

0 commit comments

Comments
 (0)