Prepare for improve of input validation
We now check application and config files before starting provisioning process. We also check serverType and target validity before starting. This happens in unified manner in the main function.merge-requests/2/head
parent
77351933fe
commit
6e2d669af5
@ -0,0 +1,12 @@
|
|||||||
|
package org.domaindrivenarchitecture.provs.server.infrastructure
|
||||||
|
|
||||||
|
import java.io.File
|
||||||
|
|
||||||
|
fun genericFileExistenceCheck(fileName: String): Boolean {
|
||||||
|
if (fileName.isEmpty()) {
|
||||||
|
return false
|
||||||
|
} else if ((!File(fileName).exists())) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
Loading…
Reference in New Issue