Skip to content
Browse files

added watchr file.

  • Loading branch information...
1 parent 3d55057 commit 2e5bf2ecb32cdc0725b2435fcf90c6bf3b093f63 @jnunemaker committed
Showing with 15 additions and 0 deletions.
  1. +15 −0 specs.watchr
View
15 specs.watchr
@@ -0,0 +1,15 @@
+def run(cmd)
+ puts(cmd)
+ system(cmd)
+end
+
+watch('.*') { |m| system('clear'); run "rake" }
+
+# Ctrl-\
+Signal.trap('QUIT') do
+ puts " --- Running all features ---\n\n"
+ run "rake"
+end
+
+# Ctrl-C
+Signal.trap('INT') { abort("\n") }

0 comments on commit 2e5bf2e

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