You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
495 B
Kotlin
15 lines
495 B
Kotlin
2 years ago
|
package org.domaindrivenarchitecture.provs.desktop.application
|
||
3 years ago
|
|
||
2 years ago
|
import org.domaindrivenarchitecture.provs.framework.core.Prov
|
||
2 years ago
|
import org.domaindrivenarchitecture.provs.desktop.domain.provisionWorkplace
|
||
|
import org.domaindrivenarchitecture.provs.desktop.domain.WorkplaceConfig
|
||
3 years ago
|
|
||
|
/**
|
||
3 years ago
|
* Use case for provisioning a workplace
|
||
3 years ago
|
*/
|
||
2 years ago
|
fun provision(prov: Prov, conf: WorkplaceConfig) {
|
||
3 years ago
|
with (conf) {
|
||
2 years ago
|
prov.provisionWorkplace(type, ssh?.keyPair(), gpg?.keyPair(), gitUserName, gitEmail)
|
||
3 years ago
|
}
|
||
|
}
|