Last active
January 3, 2016 05:19
-
-
Save jlaxson/8414422 to your computer and use it in GitHub Desktop.
Test code for the Listen gem
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
require 'rubygems' | |
require 'listen' | |
listener = Listen.to('.') do |modified, added, removed| | |
puts "modified absolute path: #{modified}" | |
puts "added absolute path: #{added}" | |
puts "removed absolute path: #{removed}" | |
end | |
listener.start # not blocking | |
sleep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment