Tripwire is a simple tool for watching a set of files/folders for changes and then triggering a shell command to execute when a change occurs.
It was written because I love the concepts behind autotest and rstakeout but the difference is that it will watch for the addition of files and subfolders where those tools only seemed to register a set of files at startup and never seemed to pick up on when you created new ones.
Tripwire uses very simple Dir.glob-ing
- FIX (list of features or problems)
FIX (code sample of usage)
- FIX (list of requirements)
The gem is hosted on gemcutter.org, so you should only have to type:
sudo gem install tripwire
Brendan Baldwin (author), Matthew Fallshaw (integrate Sven Schwyn's fsevent magic, default FILESPEC, interrupt once to trip), Sven Schwyn (silently had his code pinched)
(The MIT License)
Copyright (c) 2009 FIX
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.