Skip to content
Browse files

+ Added autotest/heckle plugin

[git-p4: depot-paths = "//src/heckle/dev/": change = 5152]
  • Loading branch information...
1 parent 013afda commit 31abea05f1c618937d92005b6a4ca97a2a861071 @zenspider zenspider committed Jun 22, 2009
Showing with 14 additions and 0 deletions.
  1. +14 −0 lib/autotest/heckle.rb
View
14 lib/autotest/heckle.rb
@@ -0,0 +1,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

0 comments on commit 31abea0

Please sign in to comment.
Something went wrong with that request. Please try again.