Package dd2480.group4.execute
Class Runner
java.lang.Object
dd2480.group4.execute.Runner
- All Implemented Interfaces:
Executor
public class Runner extends java.lang.Object implements Executor
Responsible for running the individual builds.
-
Constructor Summary
Constructors Constructor Description Runner(RepositoryHandler repository)
-
Method Summary
Modifier and Type Method Description void
runBuild(PushEvent req, NotificationInterface notification)
Builds the request.static int
runExecuteInstructions(java.nio.file.Path path)
Runs bash script execute.sh
-
Constructor Details
-
Method Details
-
runExecuteInstructions
public static int runExecuteInstructions(java.nio.file.Path path) throws java.io.IOException, java.lang.InterruptedExceptionRuns bash script execute.sh- Parameters:
path
- path to temporarily directory- Throws:
java.io.IOException
java.lang.InterruptedException
-
runBuild
public void runBuild(PushEvent req, NotificationInterface notification) throws java.io.IOException, java.lang.InterruptedExceptionBuilds the request.
-