Method: Fog.credentials
- Defined in:
- lib/fog/core/credentials.rb
.credentials ⇒ Hash
Returns The credentials pulled from the configuration file.
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/fog/core/credentials.rb', line 37 def self.credentials @credentials ||= begin if credentials_path && File.exists?(credentials_path) credentials = self.symbolize_credentials(YAML.load_file(credentials_path)) (credentials && credentials[credential]) || Fog::Errors.missing_credentials else {} end end end |