This file is indexed.

/usr/lib/ruby/vendor_ruby/fog/compute/ecloud/requests/compute_pool_edit.rb is in ruby-fog-ecloud 0.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
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module Fog
  module Compute
    class Ecloud
      module Shared
        def validate_edit_compute_pool_options(options)
          required_opts = [:name]
          unless required_opts.all? { |opt| options.key?(opt) }
            raise ArgumentError.new("Required data missing: #{(required_opts - options.keys).map(&:inspect).join(", ")}")
          end
        end

        def build_compute_pool_body_edit(options)
          xml = Builder::XmlMarkup.new
          xml.ComputePool(:name => options[:name]) do
          end
        end
      end

      class Real
        def compute_pool_edit(options)
          validate_edit_compute_pool_options(options)
          body = build_compute_pool_body_edit(options)
          request(
            :expects => 200,
            :method => "PUT",
            :headers => {},
            :body => body,
            :uri => options[:uri],
            :parse => true
          )
        end
      end
    end
  end
end