com.xebialabs.deployit.plugin.generic.step
Class BaseExecutionStep<C extends com.xebialabs.deployit.plugin.api.execution.ExecutionContext>
java.lang.Object
com.xebialabs.deployit.plugin.generic.step.BaseStep<C>
com.xebialabs.deployit.plugin.generic.step.BaseExecutionStep<C>
- All Implemented Interfaces:
- com.xebialabs.deployit.plugin.api.execution.Step<C>, java.io.Serializable
- Direct Known Subclasses:
- InspectScriptExecutionStep, ScriptExecutionStep
public abstract class BaseExecutionStep<C extends com.xebialabs.deployit.plugin.api.execution.ExecutionContext>
- extends BaseStep<C>
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface com.xebialabs.deployit.plugin.api.execution.Step |
com.xebialabs.deployit.plugin.api.execution.Step.Result |
|
Constructor Summary |
BaseExecutionStep(java.lang.String scriptPath,
com.xebialabs.deployit.plugin.overthere.HostContainer container,
java.util.Map<java.lang.String,java.lang.Object> vars,
java.lang.String description)
|
| Methods inherited from class com.xebialabs.deployit.plugin.generic.step.BaseStep |
classpathResourceExists, createOrReplaceHostFile, disconnect, evaluateTemplate, evaluateTemplate, getContainer, getCtx, getDescription, getHostFileSeparator, getHostLineSeparator, getLocalConnection, getRemoteConnection, getRemoteWorkingDirectory, getRemoteWorkingDirPath, handleExecute, hostFileExists, isRetainRemoteWorkingDirOnCompletion, readHostFile, readHostFileLines, readHostXmlFileAsModel, resolveOsSpecificTemplate, setRemoteWorkingDirPath, setRetainRemoteWorkingDirOnCompletion, substringAfterLast, substringAfterLast, uploadToWorkingDirectory, uploadToWorkingDirectory, uploadToWorkingDirectory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.xebialabs.deployit.plugin.api.execution.Step |
execute |
BaseExecutionStep
public BaseExecutionStep(java.lang.String scriptPath,
com.xebialabs.deployit.plugin.overthere.HostContainer container,
java.util.Map<java.lang.String,java.lang.Object> vars,
java.lang.String description)
doExecute
public com.xebialabs.deployit.plugin.api.execution.Step.Result doExecute()
throws java.lang.Exception
- Specified by:
doExecute in class BaseStep<C extends com.xebialabs.deployit.plugin.api.execution.ExecutionContext>
- Throws:
java.lang.Exception
uploadArtifactIfPresent
protected com.xebialabs.overthere.OverthereFile uploadArtifactIfPresent()
uploadFileResources
protected void uploadFileResources()
uploadClasspathResources
protected void uploadClasspathResources()
uploadTemplateClasspathResources
protected void uploadTemplateClasspathResources()
uploadTemplateResourceToWorkingDirectory
public com.xebialabs.overthere.OverthereFile uploadTemplateResourceToWorkingDirectory(java.lang.String template)
setWorkingDirectory
protected void setWorkingDirectory()
uploadScriptToExecute
protected com.xebialabs.overthere.OverthereFile uploadScriptToExecute(java.lang.String scriptTemplatePath)
executeScript
protected com.xebialabs.deployit.plugin.api.execution.Step.Result executeScript(com.xebialabs.overthere.OverthereFile executable)
getFileResources
public java.util.List<java.io.File> getFileResources()
setFileResources
public void setFileResources(java.util.List<java.io.File> fileResources)
getClasspathResources
public java.util.List<java.lang.String> getClasspathResources()
setClasspathResources
public void setClasspathResources(java.util.List<java.lang.String> classpathResources)
getTemplateClasspathResources
public java.util.List<java.lang.String> getTemplateClasspathResources()
setTemplateClasspathResources
public void setTemplateClasspathResources(java.util.List<java.lang.String> templateClasspathResources)
getArtifact
public java.io.File getArtifact()
setArtifact
public void setArtifact(java.io.File artifact)
getUploadedArtifactPath
public java.lang.String getUploadedArtifactPath()
resolveOsSpecificFileName
protected java.lang.String resolveOsSpecificFileName(java.lang.String template)