public interface ScriptFileNodeStepUtils
Modifier and Type | Method and Description |
---|---|
NodeStepResult |
executeRemoteScript(ExecutionContext context,
Framework framework,
INodeEntry node,
java.lang.String[] args,
java.lang.String filepath)
Execute a scriptfile already copied to a remote node with the given args
|
NodeStepResult |
executeRemoteScript(ExecutionContext context,
Framework framework,
INodeEntry node,
java.lang.String[] args,
java.lang.String filepath,
java.lang.String scriptInterpreter,
boolean interpreterargsquoted)
Execute a scriptfile already copied to a remote node with the given args
|
NodeStepResult |
executeRemoteScript(ExecutionContext context,
Framework framework,
INodeEntry node,
java.lang.String[] args,
java.lang.String filepath,
java.lang.String scriptInterpreter,
boolean interpreterargsquoted,
boolean removeFile)
Execute a scriptfile already copied to a remote node with the given args
|
NodeStepResult |
executeScriptFile(StepExecutionContext context,
INodeEntry node,
java.lang.String scriptString,
java.lang.String serverScriptFilePath,
java.io.InputStream scriptAsStream,
java.lang.String fileExtension,
java.lang.String[] args,
java.lang.String scriptInterpreter,
boolean quoted,
NodeExecutionService executionService,
boolean expandTokens)
Execute a script on a remote node
|
ExecArgList |
removeArgsForOsFamily(java.lang.String filepath,
java.lang.String osFamily)
Return ExecArgList for removing a file for the given OS family
|
java.io.File |
writeScriptToTempFile(StepExecutionContext context,
INodeEntry node,
java.lang.String scriptString,
java.lang.String serverScriptFilePath,
java.io.InputStream scriptAsStream,
boolean expandTokens)
Copy the script input to a temp file and expand embedded tokens,
if it is a string or inputstream.
|
NodeStepResult executeScriptFile(StepExecutionContext context, INodeEntry node, java.lang.String scriptString, java.lang.String serverScriptFilePath, java.io.InputStream scriptAsStream, java.lang.String fileExtension, java.lang.String[] args, java.lang.String scriptInterpreter, boolean quoted, NodeExecutionService executionService, boolean expandTokens) throws NodeStepException
context
- contextnode
- nodescriptString
- stringserverScriptFilePath
- filescriptAsStream
- streamfileExtension
- file extensionargs
- script argsscriptInterpreter
- invoker stringquoted
- true if args are quotedexecutionService
- serviceNodeStepException
- on errorjava.io.File writeScriptToTempFile(StepExecutionContext context, INodeEntry node, java.lang.String scriptString, java.lang.String serverScriptFilePath, java.io.InputStream scriptAsStream, boolean expandTokens) throws FileCopierException
context
- contextnode
- nodescriptString
- stringserverScriptFilePath
- filescriptAsStream
- streamFileCopierException
- on errorNodeStepResult executeRemoteScript(ExecutionContext context, Framework framework, INodeEntry node, java.lang.String[] args, java.lang.String filepath) throws NodeStepException
context
- contextframework
- frameworknode
- the nodeargs
- arguments to scriptfilepath
- the remote path for the scriptNodeStepException
- on errorNodeStepResult executeRemoteScript(ExecutionContext context, Framework framework, INodeEntry node, java.lang.String[] args, java.lang.String filepath, java.lang.String scriptInterpreter, boolean interpreterargsquoted) throws NodeStepException
context
- contextframework
- frameworknode
- the nodeargs
- arguments to scriptfilepath
- the remote path for the scriptscriptInterpreter
- interpreter used to invoke the scriptinterpreterargsquoted
- if true, pass the file and script args as a single argument to the interpreterNodeStepException
- on errorNodeStepResult executeRemoteScript(ExecutionContext context, Framework framework, INodeEntry node, java.lang.String[] args, java.lang.String filepath, java.lang.String scriptInterpreter, boolean interpreterargsquoted, boolean removeFile) throws NodeStepException
context
- contextframework
- frameworknode
- the nodeargs
- arguments to scriptfilepath
- the remote path for the scriptscriptInterpreter
- interpreter used to invoke the scriptinterpreterargsquoted
- if true, pass the file and script args as a single argument to the interpreterremoveFile
- if true, remove the file after executionNodeStepException
- on errorExecArgList removeArgsForOsFamily(java.lang.String filepath, java.lang.String osFamily)
filepath
- pathosFamily
- family