Skip to content
This repository
tree: 6f90962611
Fetching contributors…

Cannot retrieve contributors at this time

file 11 lines (9 sloc) 0.192 kb
1 2 3 4 5 6 7 8 9 10 11
require "rubygems"
require "filewatch/watch"

watch = FileWatch::Watch.new
ARGV.each do |path|
  watch.watch(path, :create, :delete, :modify)
end

watch.subscribe do |event|
  puts event
end
Something went wrong with that request. Please try again.