You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
370 B

6 months ago
4 months ago
4 months ago
6 months ago
  1. module RailsLiveReload
  2. # MonkeyPath Watcher
  3. class Watcher
  4. def initialize
  5. @files = {}
  6. @sockets = []
  7. # puts "Watching AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: #{root}"
  8. # RailsLiveReload.patterns.each do |pattern, rule|
  9. # puts " #{pattern} => #{rule}"
  10. # end
  11. build_tree
  12. start_socket
  13. start_listener
  14. end
  15. end
  16. end