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

module RailsLiveReload
# MonkeyPath Watcher
class Watcher
def initialize
@files = {}
@sockets = []
# puts "Watching AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: #{root}"
# RailsLiveReload.patterns.each do |pattern, rule|
# puts " #{pattern} => #{rule}"
# end
build_tree
start_socket
start_listener
end
end
end