private Path ensureRelativeHalDirectory(String deploymentName, String directoryName) { Path path = Paths.get(halconfigDirectory, deploymentName, directoryName); ensureDirectory(path); return path; }
public Path getCachePath() { return ensureDirectory(Paths.get(halconfigDirectory, ".cache")); }
private Path ensureRelativeHalDirectory(String deploymentName, String directoryName) { Path path = Paths.get(halconfigDirectory, deploymentName, directoryName); ensureDirectory(path); return path; }
public Path getCachePath() { return ensureDirectory(Paths.get(halconfigDirectory, ".cache")); }
public Path getSpinInstallScriptPath() { return ensureDirectory((Paths.get("/opt/spin/install/install-spin.sh"))); }
public Path getConnectScriptPath(String deploymentName) { Path halconfigPath = Paths.get(halconfigDirectory, deploymentName); ensureDirectory(halconfigPath); return new File(halconfigPath.toFile(), "connect.sh").toPath(); }
public Path getBackupConfigPath() { Path backup = ensureDirectory(Paths.get(halconfigDirectory, ".backup")); return new File(backup.toFile(), "config").toPath(); }
public Path getUnInstallScriptPath(String deploymentName) { Path halconfigPath = Paths.get(halconfigDirectory, deploymentName); ensureDirectory(halconfigPath); return new File(halconfigPath.toFile(), "uninstall.sh").toPath(); }
public Path getConnectScriptPath(String deploymentName) { Path halconfigPath = Paths.get(halconfigDirectory, deploymentName); ensureDirectory(halconfigPath); return new File(halconfigPath.toFile(), "connect.sh").toPath(); }
public Path getVaultTokenPath(String deploymentName) { Path halconfigPath = Paths.get(halconfigDirectory, deploymentName); ensureDirectory(halconfigPath); return new File(halconfigPath.toFile(), "vault-token").toPath(); }
public Path getUnInstallScriptPath(String deploymentName) { Path halconfigPath = Paths.get(halconfigDirectory, deploymentName); ensureDirectory(halconfigPath); return new File(halconfigPath.toFile(), "uninstall.sh").toPath(); }
public Path getPrepScriptPath(String deploymentName) { Path halconfigPath = Paths.get(halconfigDirectory, deploymentName); ensureDirectory(halconfigPath); return new File(halconfigPath.toFile(), "prep.sh").toPath(); }
public Path getVaultTokenPath(String deploymentName) { Path halconfigPath = Paths.get(halconfigDirectory, deploymentName); ensureDirectory(halconfigPath); return new File(halconfigPath.toFile(), "vault-token").toPath(); }
public Path getPrepScriptPath(String deploymentName) { Path halconfigPath = Paths.get(halconfigDirectory, deploymentName); ensureDirectory(halconfigPath); return new File(halconfigPath.toFile(), "prep.sh").toPath(); }
public Path getInstallScriptPath(String deploymentName) { Path halconfigPath = Paths.get(halconfigDirectory, deploymentName); ensureDirectory(halconfigPath); return new File(halconfigPath.toFile(), "install.sh").toPath(); }
public Path getInstallScriptPath(String deploymentName) { Path halconfigPath = Paths.get(halconfigDirectory, deploymentName); ensureDirectory(halconfigPath); return new File(halconfigPath.toFile(), "install.sh").toPath(); }
public Path getBackupConfigPath() { Path backup = ensureDirectory(Paths.get(halconfigDirectory, ".backup")); return new File(backup.toFile(), "config").toPath(); }
public Path getStagingDependenciesPath(String deploymentName) { Path staging = getStagingPath(deploymentName); return ensureDirectory(Paths.get(staging.toString(), "dependencies")); }
public Path getServiceLogsPath(String deploymentName, String hostname, String serviceName) { Path halconfigPath = Paths.get(getLogsPath(deploymentName).toString(), hostname, serviceName); ensureDirectory(halconfigPath); return halconfigPath; }
public Path getServiceLogsPath(String deploymentName, String hostname, String serviceName) { Path halconfigPath = Paths.get(getLogsPath(deploymentName).toString(), hostname, serviceName); ensureDirectory(halconfigPath); return halconfigPath; }