Method: Fog.credentials_path
- Defined in:
- lib/fog/core/credentials.rb
.credentials_path ⇒ String
Note:
This can be set using the FOG_RC environment variable or defaults to $HOME/.fog
This returns the path to the configuration file being used globally to look for sets of credentials
50 51 52 53 54 55 56 57 |
# File 'lib/fog/core/credentials.rb', line 50 def self.credentials_path @credential_path ||= begin path = ENV["FOG_RC"] || (ENV["HOME"] && File.directory?(ENV["HOME"]) && "~/.fog") File.(path) if path rescue nil end end |