This file is indexed.

/usr/lib/ruby/vendor_ruby/autotest/restart.rb is in ruby-zentest 4.11.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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