Skip to content

Commit

Permalink
added watchr file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Jul 4, 2010
1 parent 3d55057 commit 2e5bf2e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 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.