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
@@ -82,9 +82,9 @@ public struct SpecFile {
}
}
public func resolvedDictionary(environmentVariables: [String: String] = ProcessInfo.processInfo.environment) -> JSONDictionary {
public func resolvedDictionary(variables: [String: String] = [:]) -> JSONDictionary {
var resolvedSpec = resolvingPaths().mergedDictionary()
for (key, value) in environmentVariables {
for (key, value) in variables {
resolvedSpec = resolvedSpec.replaceString("${\(key)}", with: value)
}
return resolvedSpec