mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-18 03:53:56 +02:00
16 lines
493 B
Swift
16 lines
493 B
Swift
import Foundation
|
|
|
|
class EnvironmentCredentialsProvider: CredentialsProvider {
|
|
func retrieve(host: String) throws -> (String, String)? {
|
|
let username = ProcessInfo.processInfo.environment["TART_REGISTRY_USERNAME"]
|
|
let password = ProcessInfo.processInfo.environment["TART_REGISTRY_PASSWORD"]
|
|
if let username = username, let password = password {
|
|
return (username, password)
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func store(host: String, user: String, password: String) throws {
|
|
}
|
|
}
|