add a .devops folder to home

This commit is contained in:
see 2022-04-19 14:06:19 +02:00
parent 0259375469
commit 26a22044eb

View file

@ -14,6 +14,7 @@ fun Prov.installDevOps() = task {
installKubectlAndTools()
installYq()
installAwsCredentials()
installDevOpsFolder()
}
@ -170,3 +171,13 @@ fun awsCredentials(id: String, key: String): String {
aws_secret_access_key = $key
""".trimIndent()
}
fun Prov.installDevOpsFolder(): ProvResult = task {
val dir = "~/.devops/"
if (!checkDir(dir)) {
createDirs(dir)
}
}