Method: Fog.credential

Defined in:
lib/fog/core/credentials.rb

.credentialSymbol

Note:

This can be set using the FOG_CREDENTIAL environment variable

This is the named credential from amongst the configuration file being used or :default

Returns:

  • (Symbol)

    The credential to use in Fog



40
41
42
# File 'lib/fog/core/credentials.rb', line 40

def self.credential
  @credential ||= (ENV["FOG_CREDENTIAL"] && ENV["FOG_CREDENTIAL"].to_sym) || :default
end