Method: Guard.guard_symbol
- Defined in:
- lib/guard.rb
.guard_symbol(guard) ⇒ Symbol
Get the symbol we have to catch when running a supervised task. If we are within a Guard group that has the ‘:halt_on_fail` option set, we do NOT catch it here, it will be catched at the group level.
348 349 350 351 352 353 354 355 |
# File 'lib/guard.rb', line 348 def guard_symbol(guard) if guard.group.class == Symbol group = groups(guard.group) group.[:halt_on_fail] ? :no_catch : :task_has_failed else :task_has_failed end end |