Skip to content
This repository
tree: 231fba30b3
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 15 lines (12 sloc) 0.343 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# -*- ruby -*-

module Autotest::Heckle
  @@flags = []
  @@klasses = []
  def self.flags; @@flags; end
  def self.klasses; @@klasses; end

  Autotest.add_hook :all_good do |at|
    heckle = "heckle" + (@@flags.empty? ? '' : " #{flags.join(' ')}")
    cmd = @@klasses.map { |klass| "#{heckle} #{klass}" }.join(" && ")
    system cmd
  end
end
Something went wrong with that request. Please try again.