Module: Aws::Google::GoogleSharedCredentials
- Defined in:
- lib/aws/google/credential_provider.rb
Instance Method Summary collapse
Instance Method Details
#google_credentials_from_config(opts = {}) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/aws/google/credential_provider.rb', line 24 def google_credentials_from_config(opts = {}) google_opts = {} if @config_enabled && @parsed_config p = opts[:profile] || @profile_name google_opts.merge!(@parsed_config. fetch(p, {}).fetch('google', {}). transform_keys(&:to_sym) ) end google_opts.merge!(::Aws::Google.config) if google_opts.has_key?(:role_arn) Google.new(google_opts) end end |