Skip to content

Instantly share code, notes, and snippets.

@stereosupersonic
Created November 13, 2015 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stereosupersonic/3a9a9a60366f785d876e to your computer and use it in GitHub Desktop.
Save stereosupersonic/3a9a9a60366f785d876e to your computer and use it in GitHub Desktop.
require 'listen' #https://github.com/guard/listen
dir = "/Users/michaeldeimel/entwicklung/freeletics/core-user-rails"
listener = Listen.to(dir) 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