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
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, getTargetOS, getTimeout, getWorkingDirectory, outputDirectoryEnabled, relativeWorkingDirectoryFilesPaths, relativeWorkingDirectoryFilesPaths
-
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) throws io.kestra.core.exceptions.IllegalVariableEvaluationException, IOException - Throws:
io.kestra.core.exceptions.IllegalVariableEvaluationExceptionIOException
-