lib/foreplay/engine/secrets/location.rb in foreplay-0.13.1 vs lib/foreplay/engine/secrets/location.rb in foreplay-0.13.2

- old
+ new

@@ -24,19 +24,20 @@ @secrets = {} else log 'No secrets found' url ? log("Looked in #{url}") : log('No url found') log("Secrets #{all_secrets.key?(environment) ? 'has a' : 'has no'} key #{environment}") if all_secrets + log all_secrets.inspect if all_secrets @secrets = {} end end def all_secrets return @all_secrets if @all_secrets @all_secrets = url ? YAML.load(`#{command}`) : {} rescue Psych::SyntaxError => e - log "Exception caught when loading secrets using this command: #{command}" + log "Exception caught when loading secrets from this location: #{url}" log "#{e.class}: #{e.message}".red @all_secrets = {} end def command