Class CommandsWrapper
java.lang.Object
io.kestra.plugin.scripts.exec.scripts.runners.CommandsWrapper
- All Implemented Interfaces:
io.kestra.core.models.tasks.runners.TaskCommands
public class CommandsWrapper
extends Object
implements io.kestra.core.models.tasks.runners.TaskCommands
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalVars(Map<String, Object> additionalVars) io.kestra.core.models.tasks.runners.TaskRunnerrender(io.kestra.core.runners.RunContext runContext, String command, List<String> internalStorageLocalFiles) render(io.kestra.core.runners.RunContext runContext, List<String> commands, List<String> internalStorageLocalFiles) run()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.kestra.core.models.tasks.runners.TaskCommands
getAdditionalVars, getCommands, getContainerImage, getEnv, getLogConsumer, getWorkingDirectory, outputDirectoryEnabled
-
Constructor Details
-
CommandsWrapper
public CommandsWrapper(io.kestra.core.runners.RunContext runContext)
-
-
Method Details
-
withEnv
-
addAdditionalVars
-
addEnv
-
run
- Throws:
Exception
-
getTaskRunner
public io.kestra.core.models.tasks.runners.TaskRunner getTaskRunner() -
getEnableOutputDirectory
- Specified by:
getEnableOutputDirectoryin interfaceio.kestra.core.models.tasks.runners.TaskCommands
-
getOutputDirectory
- Specified by:
getOutputDirectoryin interfaceio.kestra.core.models.tasks.runners.TaskCommands
-
render
public String render(io.kestra.core.runners.RunContext runContext, String command, List<String> internalStorageLocalFiles) throws io.kestra.core.exceptions.IllegalVariableEvaluationException, IOException - Throws:
io.kestra.core.exceptions.IllegalVariableEvaluationExceptionIOException
-
render
public List<String> render(io.kestra.core.runners.RunContext runContext, List<String> commands, List<String> internalStorageLocalFiles) throws io.kestra.core.exceptions.IllegalVariableEvaluationException, IOException - Throws:
io.kestra.core.exceptions.IllegalVariableEvaluationExceptionIOException
-