gem - Simple ruby guard watcher -
is there way create simple guard watch? want run rake task when file changes in specific directory , going through of these steps 1 off task. https://github.com/guard/guard/wiki/create-a-guard
i tried adding in guardfile doesn't work.
guard :doc watch(%r{^documentation}) { "rake doc:build" } end watch("/documentation") { "rake doc:build" }
so know of simple way run rake task when file updated guard?
the straightforward way use guard-rake run rake task on file modification.
a more generic solution use guard-shell run command line tool on file modification.
more complex use cases should solved creating own guard plugin. don't need create gem, since can define them inline guard avdi shows in a guardfile redis blog post.
when want share guard, have @ more advanced guard plugins guard-rspec or guard-jasmine examples.
Comments
Post a Comment