class Build::Files::Monitor::FSEvent
def run(**options, &block)
def run(**options, &block) notifier = ::FSEvent.new catch(:interrupt) do while true notifier.watch self.roots do |directories| directories.collect! do |directory| File.expand_path(directory) end self.update(directories) yield if self.updated notifier.stop end end notifier.run end end end