This file is indexed.

/usr/lib/ruby/vendor_ruby/fog/identity.rb is in ruby-fog-core 1.22.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
module Fog
  module Identity

    def self.[](provider)
      self.new(:provider => provider)
    end

    def self.new(attributes)
      attributes = attributes.dup # Prevent delete from having side effects
      provider = attributes.delete(:provider).to_s.downcase.to_sym

      unless providers.include?(provider)
        raise ArgumentError.new("#{provider} has no identity service")
      end

      require "fog/#{provider}/identity"
      begin
        Fog::Identity.const_get(Fog.providers[provider]).new(attributes)
      rescue
        Fog::const_get(Fog.providers[provider]).const_get("Identity").new(attributes)
      end
    end

    def self.providers
      Fog.services[:identity]
    end
  end
end