Class GitPackCommand

    • Constructor Detail

      • GitPackCommand

        public GitPackCommand​(GitLocationResolver rootDirResolver,
                              java.lang.String command,
                              CloseableExecutorService executorService)
        Parameters:
        rootDirResolver - Resolver for GIT root directory
        command - Command to execute
        executorService - An CloseableExecutorService to be used when start(ChannelSession, Environment)-ing execution. If null an ad-hoc single-threaded service is created and used.
    • Method Detail

      • run

        public void run()
      • resolveRootDirectory

        protected java.nio.file.Path resolveRootDirectory​(java.lang.String command,
                                                          java.lang.String[] args)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • setPackConfiguration

        public void setPackConfiguration​(GitPackConfiguration packConfiguration)