Created
September 5, 2012 01:26
-
-
Save meeech/3628881 to your computer and use it in GitHub Desktop.
Snippet for listen gem bug report
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 characters
#!/usr/bin/ruby | |
require 'socket' | |
require 'rubygems' | |
require 'json' | |
require 'listen' | |
path = '/Users/mitch/Sites/klocko' | |
Listen.to(path) do |modified, added, removed| | |
puts 'Modified:' | |
puts modified.inspect | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment