Sha256: 9046de36898241c11e43f0961b59f96ae8aa69981c1a1eeea8899570269c1eb6

Contents?: true

Size: 273 Bytes

Versions: 24

Compression:

Stored size: 273 Bytes

Contents

module Autotest::Restart
  Autotest.add_hook :updated do |at, *args|
    if args.flatten.include? ".autotest" then
      warn "Detected change to .autotest, restarting"
      cmd = %w(autotest)
      cmd << " -v" if $v
      cmd += ARGV

      exec(*cmd)
    end
  end
end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
autotest-standalone-4.5.11 lib/autotest/restart.rb
autotest-standalone-4.5.10 lib/autotest/restart.rb
autotest-standalone-4.5.9 lib/autotest/restart.rb
autotest-standalone-4.5.8 lib/autotest/restart.rb
autotest-standalone-4.5.7 lib/autotest/restart.rb
autotest-standalone-4.5.6 lib/autotest/restart.rb
autotest-standalone-4.5.5 lib/autotest/restart.rb
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/restart.rb
autotest-standalone-4.5.4 lib/autotest/restart.rb
autotest-standalone-4.5.3 lib/autotest/restart.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/restart.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/restart.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/restart.rb
ZenTest-4.4.2 lib/autotest/restart.rb
ZenTest-4.4.1 lib/autotest/restart.rb
autotest-standalone-4.5.2 lib/autotest/restart.rb
autotest-standalone-4.5.1 lib/autotest/restart.rb
autotest-standalone-4.5.0 lib/autotest/restart.rb
autotest-4.4.5 lib/autotest/restart.rb
autotest-4.4.4 lib/autotest/restart.rb