Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (12 sloc) 270 Bytes
#!/usr/bin/env ruby
require 'rubygems'
require 'bind'
upload = lambda do |file|
system "./upload.sh #{file.path}"
end
listener = Bind::Listener.new \
:interval => 0.5,
:debug => $stdout,
:actions => [upload],
:paths => ['*'] # Dir['**/*.{js}']
listener.run!