13 lines
301 B
Ruby
13 lines
301 B
Ruby
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
|
|
|
|
# for rb-inotify/rb-fsevent
|
|
require 'rubygems'
|
|
|
|
require 'fssm'
|
|
|
|
FSSM.monitor('.', '**/*') do
|
|
update { |b, r| puts "Update in #{b} to #{r}" }
|
|
delete { |b, r| puts "Delete in #{b} to #{r}" }
|
|
create { |b, r| puts "Create in #{b} to #{r}" }
|
|
end
|