From f9bf72313fe3f004b63cfef064e4a275ff53fb91 Mon Sep 17 00:00:00 2001 From: gittestuser Date: Fri, 4 Feb 2022 11:22:30 +0100 Subject: [PATCH] fixed desktop resource path --- .../provs/desktop/infrastructure/DevOps.kt | 2 +- .../provs/desktop}/infrastructure/k8s-create-context.sh | 0 .../provs/desktop}/infrastructure/kubectl.sh | 0 .../provs/desktop/infrastructure/DevOpsKtTest.kt | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename src/main/resources/{workplace => org/domaindrivenarchitecture/provs/desktop}/infrastructure/k8s-create-context.sh (100%) rename src/main/resources/{workplace => org/domaindrivenarchitecture/provs/desktop}/infrastructure/kubectl.sh (100%) diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOps.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOps.kt index d5467f2..f6cd8d7 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOps.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOps.kt @@ -37,7 +37,7 @@ fun Prov.installYq( } fun Prov.installKubectlAndTools(): ProvResult = def { - val resourcePath = "workplace/infrastructure/" + val resourcePath = "org/domaindrivenarchitecture/provs/desktop/infrastructure" task("installKubectl") { val kubeConfigFile = "~/.bashrc.d/kubectl.sh" diff --git a/src/main/resources/workplace/infrastructure/k8s-create-context.sh b/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k8s-create-context.sh similarity index 100% rename from src/main/resources/workplace/infrastructure/k8s-create-context.sh rename to src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k8s-create-context.sh diff --git a/src/main/resources/workplace/infrastructure/kubectl.sh b/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/kubectl.sh similarity index 100% rename from src/main/resources/workplace/infrastructure/kubectl.sh rename to src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/kubectl.sh diff --git a/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOpsKtTest.kt b/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOpsKtTest.kt index 8dcd410..4957b43 100644 --- a/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOpsKtTest.kt +++ b/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOpsKtTest.kt @@ -28,7 +28,7 @@ internal class DevOpsKtTest { assertTrue( defaultTestContainer().fileContainsText( "~/.bashrc.d/kubectl.sh", - getResourceAsText("workplace/infrastructure/kubectl.sh") + getResourceAsText("org/domaindrivenarchitecture/provs/desktop/infrastructure/kubectl.sh") ) ) assertTrue(