Fix review suggestions

This commit is contained in:
Tom Quist
2019-06-17 00:01:33 +02:00
parent 25260963c7
commit c8aef74a93
5 changed files with 11 additions and 11 deletions
+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