This file is indexed.

/usr/lib/ruby/1.8/mcprovision/nodes.rb is in mcollective-server-provisioner 0.0.1~git20110120-0ubuntu5.

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
module MCProvision
    class Nodes
        attr_reader :nodes, :filter, :agent

        def initialize(agent, filter, config)
            @filter = filter
            @agent = agent
            @config = config

            setup
            find_all
        end

        private
        def find_all
            @nodes = @rpc.discover.map do |node|
                Node.new(node, @config, @agent)
            end
        end

        def setup
            @rpc = rpcclient(@agent)
            @rpc.filter = Util.parse_filter(@agent, @filter)
            @rpc.progress = false
        end
    end
end