Method: Fog.credentials
- Defined in:
- lib/fog/core/credentials.rb
.credentials ⇒ Hash
Returns The credentials pulled from the configuration file.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/fog/core/credentials.rb', line 67 def self.credentials @credentials ||= begin if credentials_path && File.exist?(credentials_path) credentials = Fog::Core::Utils.prepare_service_settings(YAML.load_file(credentials_path)) (credentials && credentials[credential]) || Fog::Errors.missing_credentials else {} end end end |