[skip ci] rename isHostKnown -> isKnownHost
This commit is contained in:
parent
87b56fb0d2
commit
111d9951ed
2 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ fun Prov.configureSshKeys(sshKeys: SshKeyPair) = task {
|
||||||
*
|
*
|
||||||
* @return whether if was found
|
* @return whether if was found
|
||||||
*/
|
*/
|
||||||
fun Prov.isHostKnown(hostOrIp: String): Boolean {
|
fun Prov.isKnownHost(hostOrIp: String): Boolean {
|
||||||
return cmdNoEval("ssh-keygen -F $hostOrIp").out?.isNotEmpty() ?: false
|
return cmdNoEval("ssh-keygen -F $hostOrIp").out?.isNotEmpty() ?: false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ package org.domaindrivenarchitecture.provs.framework.ubuntu.git.base
|
||||||
import org.domaindrivenarchitecture.provs.desktop.domain.addKnownHosts
|
import org.domaindrivenarchitecture.provs.desktop.domain.addKnownHosts
|
||||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.checkDir
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.checkDir
|
||||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.install.base.aptInstall
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.install.base.aptInstall
|
||||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.keys.base.isHostKnown
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.keys.base.isKnownHost
|
||||||
import org.domaindrivenarchitecture.provs.test.defaultTestContainer
|
import org.domaindrivenarchitecture.provs.test.defaultTestContainer
|
||||||
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
|
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
|
||||||
import org.domaindrivenarchitecture.provs.test.tags.ExtensiveContainerTest
|
import org.domaindrivenarchitecture.provs.test.tags.ExtensiveContainerTest
|
||||||
|
@ -24,8 +24,8 @@ internal class GitKtTest {
|
||||||
// then
|
// then
|
||||||
assertTrue(res.success)
|
assertTrue(res.success)
|
||||||
|
|
||||||
assertTrue(a.isHostKnown("github.com"), "github.com does not seem to be a known host")
|
assertTrue(a.isKnownHost("github.com"), "github.com does not seem to be a known host")
|
||||||
assertTrue(a.isHostKnown("gitlab.com"), "gitlab.com does not seem to be a known host")
|
assertTrue(a.isKnownHost("gitlab.com"), "gitlab.com does not seem to be a known host")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ExtensiveContainerTest
|
@ExtensiveContainerTest
|
||||||
|
|
Loading…
Reference in a new issue