johnbintz / guard-rails

No longer maintained. Latest version is at https://github.com/ranmocy/guard-rails
35 stars 53 forks source link

Ensure Guard returns a boolean status #3

Closed johnbintz closed 13 years ago

johnbintz commented 13 years ago

For now, have it always return true.

netzpirat commented 13 years ago

John, since version 0.8.0 this is obsolete. The return value is only passed to a defined Guard hook, but it isn't evaluated in Guard itself. When something wrong and you want to stop the other Guards within the same group, you have to throw a symbol:

throw :task_has_failed

Thanks for the great Guard.

johnbintz commented 13 years ago

Yup, I'll nuke this ticket and get the other guards updated. Thanks!