Is there a way to create a simple watchdog chat? I want to start a rake task when a file changes in a specific directory and goes through all these steps, too much for this one task. https://github.com/guard/guard/wiki/Create-a-guard
I tried adding this to the Guardfile, but it does not work.
guard :doc do watch(%r{^documentation}) { "rake doc:build" } end watch("/documentation") { "rake doc:build" }
Did you know that an easy way to run the rake command when updating a file with guard ?
source share