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 Details

    • CommandsWrapper

      public CommandsWrapper(io.kestra.core.runners.RunContext runContext)
  • Method Details

    • withEnv

      public CommandsWrapper withEnv(Map<String,String> envs)
    • addAdditionalVars

      public CommandsWrapper addAdditionalVars(Map<String,Object> additionalVars)
    • addEnv

      public CommandsWrapper addEnv(Map<String,String> envs)
    • run

      public ScriptOutput run() throws Exception
      Throws:
      Exception
    • getTaskRunner

      public io.kestra.core.models.tasks.runners.TaskRunner getTaskRunner()
    • getEnableOutputDirectory

      public Boolean getEnableOutputDirectory()
      Specified by:
      getEnableOutputDirectory in interface io.kestra.core.models.tasks.runners.TaskCommands
    • getOutputDirectory

      public Path getOutputDirectory()
      Specified by:
      getOutputDirectory in interface io.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.IllegalVariableEvaluationException
      IOException
    • 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.IllegalVariableEvaluationException
      IOException