This file is indexed.

/usr/lib/ruby/vendor_ruby/autotest/autoupdate.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
17
18
19
20
21
22
23
24
25
26
module Autotest::AutoUpdate
  @@sleep_time, @@update_cmd, @@updater = 60, "svn up", nil

  def self.sleep_time= o
    @@sleep_time = o
  end

  def self.update_cmd= o
    @@update_cmd = o
  end

  Autotest.add_hook :run_command do  |at|
    @@updater.kill if @@updater
  end

  Autotest.add_hook :ran_command do  |at|
    @@updater = Thread.start do
      loop do
        puts "# Waiting for #{@@sleep_time} seconds before updating"
        sleep @@sleep_time
        puts "# Running #{@@update_cmd}"
        system @@update_cmd
      end
    end
  end
end