Created
December 29, 2011 09:37
Revisions
-
netzpirat created this gist
Dec 29, 2011 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ require 'guard/listener' listener = Guard::Listener.select_and_init({ watchdir: '/tmp', watch_all_modifications: true }) listener.on_change do |files| puts "File change: #{ files.join(',') }" end listener.start