add a .devops folder to home
This commit is contained in:
parent
0259375469
commit
26a22044eb
1 changed files with 11 additions and 0 deletions
|
@ -14,6 +14,7 @@ fun Prov.installDevOps() = task {
|
||||||
installKubectlAndTools()
|
installKubectlAndTools()
|
||||||
installYq()
|
installYq()
|
||||||
installAwsCredentials()
|
installAwsCredentials()
|
||||||
|
installDevOpsFolder()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -170,3 +171,13 @@ fun awsCredentials(id: String, key: String): String {
|
||||||
aws_secret_access_key = $key
|
aws_secret_access_key = $key
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun Prov.installDevOpsFolder(): ProvResult = task {
|
||||||
|
|
||||||
|
val dir = "~/.devops/"
|
||||||
|
|
||||||
|
if (!checkDir(dir)) {
|
||||||
|
createDirs(dir)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue