Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (22 sloc) 0.448 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
# -*- ruby -*-

begin
  require 'autotest/fsevent'
rescue LoadError
end

Autotest.add_hook :initialize do |at|
  at.add_exception /bundle$/
  at.add_exception /\.git/
end

Autotest.add_hook :run_command do |at|
  at.unit_diff = 'cat'
  if ENV['ONENINE']
    system "rake1.9 compile"
  else
    system "rake compile"
  end
end

Autotest.add_hook :ran_command do |at|
  File.open('/tmp/autotest.txt', 'wb') { |f|
    f.write(at.results.join)
  }
end
Something went wrong with that request. Please try again.