Sha256: 492c3130432830718c9d726ccfd876753a316a61a15360440eef91921fc4770f
Contents?: true
Size: 368 Bytes
Versions: 9
Compression:
Stored size: 368 Bytes
Contents
require File.dirname(__FILE__) + '/../lib/bind' # Execute this file to start the listener, then alter any file in this directory paths = [File.dirname(__FILE__)] action = lambda { |file| puts "modified #{file}" } listener = Bind::Listener.new :event => :change, :paths => paths, :interval => 1, :actions => [action], :timeout => 10, :debug => $stdout listener.run!
Version data entries
9 entries across 9 versions & 2 rubygems