Class GitInitializer

java.lang.Object
ai.wanaku.capabilities.sdk.runtime.camel.init.GitInitializer
All Implemented Interfaces:
Initializer

public class GitInitializer extends Object implements Initializer
Initializer that clones a Git repository during application startup. The repository is cloned to {dataDir}/cloned-repo and reused if it already exists.
  • Constructor Details

    • GitInitializer

      public GitInitializer(String gitRepoUrl, Path dataDir)
  • Method Details

    • initialize

      public void initialize() throws org.eclipse.jgit.api.errors.GitAPIException, IOException
      Specified by:
      initialize in interface Initializer
      Throws:
      org.eclipse.jgit.api.errors.GitAPIException
      IOException
    • getClonedRepoPath

      public Path getClonedRepoPath()