This file is indexed.

/usr/share/pcsd/cluster.rb is in pcs 0.9.149-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
class Cluster
  attr_accessor :name
  attr_reader :nodes

  def initialize(name, node_list)
    @name = name
    self.nodes = node_list
  end

  def nodes=(node_list)
    @nodes = []
    node_list.each { |n|
      @nodes << n if n.is_a?(String)
    }
    @nodes = @nodes.uniq.sort
    return self
  end

  def num_nodes
    @nodes.length
  end

  def ui_address
    return "/managec/" + @name + "/main"
  end
end