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

Version Path
visionmedia-bind-0.2.0 examples/log_changes.rb
visionmedia-bind-0.2.1 examples/log_changes.rb
visionmedia-bind-0.2.2 examples/log_changes.rb
visionmedia-bind-0.2.4 examples/log_changes.rb
visionmedia-bind-0.2.5 examples/log_changes.rb
visionmedia-bind-0.2.6 examples/log_changes.rb
bind-0.2.8 examples/log_changes.rb
bind-0.2.7 examples/log_changes.rb
bind-0.2.6 examples/log_changes.rb