Guard is a command line tool that easily handle events on files modifications.
WWW: https://github.com/guard/guard
RG: https://rubygems.org/gems/guard