This file is indexed.

/usr/lib/ruby/vendor_ruby/serverspec/type/zfs.rb is in ruby-serverspec 2.18.0-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
17
18
19
20
21
22
23
24
25
26
27
28
29
module Serverspec::Type
  class Zfs < Base
    def exists?
      @runner.check_zfs_exists(@name)
    end

    def has_property?(property)
      @runner.check_zfs_has_property(@name, property)
    end

    def to_s
      'ZFS'
    end

    def property
      get_property if @property.nil?
      @property
    end

    private
    def get_property
      @property = Hash.new
      @runner.get_zfs_property(@name).stdout.split(/\n/).each do |line|
        property, value = line.split(/\s+/)
        @property[property] = value
      end
    end
  end
end