Sha256: eea9924c11d7b4370e7c66eaa1b9df99f1f51fc293b43481368d4623a697d1ec
Contents?: true
Size: 408 Bytes
Versions: 28
Compression:
Stored size: 408 Bytes
Contents
module Autotest::Restart Autotest.add_hook :initialize do |at| configs = [File.expand_path('~/.autotest'), './.autotest'].select { |f| File.exist? f } at.extra_files.concat configs false end Autotest.add_hook :updated do |at, found| unless found.flatten.grep(/\.autotest$/).empty? then warn "Detected change to .autotest, restarting" at.restart end end end
Version data entries
28 entries across 28 versions & 6 rubygems