This file is indexed.

/usr/share/backgroundrb/generators/worker/worker_generator.rb is in libbackgroundrb-ruby1.8 1.1-1.

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
class WorkerGenerator < Rails::Generator::NamedBase
  def manifest
    record do |m|
      # Check for class naming collisions.
      m.class_collisions class_path, class_name, "#{class_name}WorkerTest"

      # Worker and test directories.
      m.directory File.join('lib/workers', class_path)
      #m.directory File.join('test/unit', class_path)

      # Worker class and unit tests.
      m.template 'worker.rb',      File.join('lib/workers', class_path, "#{file_name}_worker.rb")
      #m.template 'unit_test.rb',  File.join('test/unit', class_path, "#{file_name}_worker_test.rb")
    end
  end
end