This file is indexed.

/usr/lib/ruby/vendor_ruby/chef_zero/data_store/interface_v1.rb is in chef-zero 4.5.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module ChefZero
  module DataStore
    class InterfaceV1
      def interface_version
        1
      end

      def clear
        raise "clear not implemented by class #{self.class}"
      end

      # Create a directory.
      # options is a list of symbols, including:
      #   :recursive - create any parents needed
      def create_dir(path, name, *options)
        raise "create_dir not implemented by class #{self.class}"
      end

      # Create a file.
      # options is a list of symbols, including:
      #   :create_dir - create any parents needed
      def create(path, name, data, *options)
        raise "create not implemented by class #{self.class}"
      end

      # Get a file.
      def get(path, request=nil)
        raise "get not implemented by class #{self.class}"
      end

      # Set a file's value.
      # options is a list of symbols, including:
      #    :create - create the file if it does not exist
      #    :create_dir - create the directory if it does not exist
      def set(path, data, *options)
        raise "set not implemented by class #{self.class}"
      end

      # Delete a file.
      def delete(path)
        raise "delete not implemented by class #{self.class}"
      end

      # Delete a directory.
      # options is a list of symbols, including:
      #   :recursive - delete even if empty
      def delete_dir(path, *options)
        raise "delete_dir not implemented by class #{self.class}"
      end

      # List a directory.
      def list(path)
        raise "list not implemented by class #{self.class}"
      end

      # Check a file's existence.
      def exists?(path)
        raise "exists? not implemented by class #{self.class}"
      end

      # Check a directory's existence.
      def exists_dir?(path)
        raise "exists_dir? not implemented by class #{self.class}"
      end
    end
  end
end