Fix review suggestions

This commit is contained in:
Tom Quist committed 2019-06-17 00:01:33 +02:00
1 parent 25260963c7
commit c8aef74a93
5 files changed
+11 -11

No files matched your search

+2 -2
View File
@@ -15,9 +15,9 @@ public class SpecLoader {
self.version = version
}
public func loadProject(path: Path, environmentVariables: [String: String] = ProcessInfo.processInfo.environment) throws -> Project {
public func loadProject(path: Path, variables: [String: String] = [:]) throws -> Project {
let spec = try SpecFile(path: path)
let resolvedDictionary = spec.resolvedDictionary(environmentVariables: environmentVariables)
let resolvedDictionary = spec.resolvedDictionary(variables: variables)
let project = try Project(basePath: spec.basePath, jsonDictionary: resolvedDictionary)
self.project = project