public interface NaiveScriptRunner
SshTasks
approach seems better.
Not gone so far as deprecating (yet, in 0.6.0) although we might. Feedback welcome.
Modifier and Type | Method and Description |
---|---|
int |
execute(java.util.List<java.lang.String> script,
java.lang.String summaryForLogging)
Runs a script and returns the result code
|
int |
execute(java.util.Map flags,
java.util.List<java.lang.String> script,
java.lang.String summaryForLogging)
Runs a script and returns the result code, supporting flags including:
out, err as output/error streams;
logPrefix, prefix string to put in log output;
env, map of environment vars to pass to shell environment
|
int execute(java.util.List<java.lang.String> script, java.lang.String summaryForLogging)
int execute(java.util.Map flags, java.util.List<java.lang.String> script, java.lang.String summaryForLogging)