# -*- ruby -*-

begin
  require 'autotest/fsevent'
rescue LoadError
end

Autotest.add_hook :run_command do |at|
  at.unit_diff = 'cat'
end

Autotest.add_hook :ran_command do |at|
  File.open('/tmp/autotest.txt', 'wb') { |f|
    f.write(at.results.join)
  }
end
