ServiceDeployer

constructor(keyPair: Set<KeyPair>, proxyJump: String? = null, sshPrepareWork: (session: ClientSession, node: ServiceNode, service: Service) -> Unit? = null, sleepAfterSuspend: Duration? = null, clientSessionFetcher: (SshClient, ServiceNode) -> ClientSession = { sshClient, node -> sshClient .let { if (proxyJump != null) { it.connect(HostConfigEntry("", node.ip, 22, "root", proxyJump)) } else it.connect("root", node.ip, 22) } .verify(10000) .session })