guard/guard — Issue #164: Accessing options via hooks
Author: supaspoida
Created: 2011-10-15 23:43:00+00:00
State: open

I have some monkey patches that extend guard-rspec & guard-cucumber to add -t focus/--tags @focus to options if any of the matching files include focus tags. I would love to be able to replace these monkey patches with callbacks, but as far as I can tell there is no way to access the instance of the running guard & options via callback.

Am I missing something?

For an example of what I'm trying to do see here: https://github.com/hashrocket/dotmatrix/blob/master/.Guardfile#L87