@Test public void findAllLocalDeploymentConfigGitPath() throws Exception { assertThat(resolver.findAllEnvironmentSetupLocalPath("my_app")).hasSize(2); }
@SneakyThrows public List<Path> findAllEnvironmentSetupLocalPath(String applicationId) { Path environmentSetupPath = storageRootPath.resolve(applicationId).resolve(ENV_DEPLOYMENT_SETUP_DIRECTORY); return Files.walk(environmentSetupPath, 1).filter(path -> !environmentSetupPath.equals(path) && Files.isDirectory(path)).collect(Collectors.toList()); }
LocalGitRepositoryPathResolver { @SneakyThrows public List<Path> findAllEnvironmentSetupLocalPath(String applicationId) { Path environmentSetupPath = storageRootPath.resolve(applicationId).resolve(ENV_DEPLOYMENT_SETUP_DIRECTORY); return Files.walk(environmentSetupPath, 1).filter(path -> !environmentSetupPath.equals(path) && Files.isDirectory(path)).collect(Collectors.toList()); } }
LocalGitRepositoryPathResolver { @SneakyThrows public List<Path> findAllEnvironmentSetupLocalPath(String applicationId) { Path environmentSetupPath = storageRootPath.resolve(applicationId).resolve(ENV_DEPLOYMENT_SETUP_DIRECTORY); return Files.walk(environmentSetupPath, 1).filter(path -> !environmentSetupPath.equals(path) && Files.isDirectory(path)).collect(Collectors.toList()); }  }
LocalGitRepositoryPathResolver { @SneakyThrows public List<Path> findAllEnvironmentSetupLocalPath(String applicationId) { Path environmentSetupPath = storageRootPath.resolve(applicationId).resolve(ENV_DEPLOYMENT_SETUP_DIRECTORY); return Files.walk(environmentSetupPath, 1).filter(path -> !environmentSetupPath.equals(path) && Files.isDirectory(path)).collect(Collectors.toList()); }  @Required @Value("${directories.alien}") void setStorageRootPath(String rootDir); @SneakyThrows Path resolve(Class<T> clazz, String deploymentConfigId); Path findApplicationVariableLocalPath(String applicationId); Path findEnvironmentSetupLocalPath(String applicationId, String environmentId); @SneakyThrows List<Path> findAllEnvironmentSetupLocalPath(String applicationId); }
LocalGitRepositoryPathResolver { @SneakyThrows public List<Path> findAllEnvironmentSetupLocalPath(String applicationId) { Path environmentSetupPath = storageRootPath.resolve(applicationId).resolve(ENV_DEPLOYMENT_SETUP_DIRECTORY); return Files.walk(environmentSetupPath, 1).filter(path -> !environmentSetupPath.equals(path) && Files.isDirectory(path)).collect(Collectors.toList()); }  @Required @Value("${directories.alien}") void setStorageRootPath(String rootDir); @SneakyThrows Path resolve(Class<T> clazz, String deploymentConfigId); Path findApplicationVariableLocalPath(String applicationId); Path findEnvironmentSetupLocalPath(String applicationId, String environmentId); @SneakyThrows List<Path> findAllEnvironmentSetupLocalPath(String applicationId);  }