metasploit-framework/lib/gemcache/ruby/1.9.1/gems/fssm-0.2.9/example.rb

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