com.xebialabs.deployit.plugin.generic.step
Class InspectScriptExecutionStep

java.lang.Object
  extended by com.xebialabs.deployit.plugin.generic.step.BaseStep<C>
      extended by com.xebialabs.deployit.plugin.generic.step.BaseExecutionStep<com.xebialabs.deployit.plugin.api.inspection.InspectionExecutionContext>
          extended by com.xebialabs.deployit.plugin.generic.step.InspectScriptExecutionStep
All Implemented Interfaces:
com.xebialabs.deployit.plugin.api.execution.Step<com.xebialabs.deployit.plugin.api.inspection.InspectionExecutionContext>, com.xebialabs.deployit.plugin.api.inspection.InspectionStep, java.io.Serializable

public class InspectScriptExecutionStep
extends BaseExecutionStep<com.xebialabs.deployit.plugin.api.inspection.InspectionExecutionContext>
implements com.xebialabs.deployit.plugin.api.inspection.InspectionStep

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.xebialabs.deployit.plugin.api.execution.Step
com.xebialabs.deployit.plugin.api.execution.Step.Result
 
Field Summary
static java.lang.String DISCOVERED_ITEM_PRELUDE
           
static java.lang.String INSPECTED_PROPERTY_PRELUDE
           
protected  com.xebialabs.deployit.plugin.api.udm.ConfigurationItem inspectedItem
           
protected  com.xebialabs.deployit.plugin.api.reflect.Descriptor inspectedItemDescriptor
           
 
Fields inherited from class com.xebialabs.deployit.plugin.generic.step.BaseStep
FREEMARKER_FILE_EXT, logger
 
Constructor Summary
InspectScriptExecutionStep(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem inspectedItem, 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)
           
 
Method Summary
 com.xebialabs.deployit.plugin.api.execution.Step.Result execute(com.xebialabs.deployit.plugin.api.inspection.InspectionExecutionContext ctx)
           
protected  boolean handleOutputLine(java.lang.String line, com.xebialabs.deployit.plugin.api.inspection.InspectionExecutionContext ctx)
           
protected  boolean isReferenceToParent(com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor pd)
           
 
Methods inherited from class com.xebialabs.deployit.plugin.generic.step.BaseExecutionStep
doExecute, executeScript, getArtifact, getClasspathResources, getFileResources, getTemplateClasspathResources, getUploadedArtifactPath, resolveOsSpecificFileName, setArtifact, setClasspathResources, setFileResources, setTemplateClasspathResources, setWorkingDirectory, uploadArtifactIfPresent, uploadClasspathResources, uploadFileResources, uploadScriptToExecute, uploadTemplateClasspathResources, uploadTemplateResourceToWorkingDirectory
 
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
getDescription
 

Field Detail

inspectedItem

protected com.xebialabs.deployit.plugin.api.udm.ConfigurationItem inspectedItem

inspectedItemDescriptor

protected com.xebialabs.deployit.plugin.api.reflect.Descriptor inspectedItemDescriptor

INSPECTED_PROPERTY_PRELUDE

public static final java.lang.String INSPECTED_PROPERTY_PRELUDE
See Also:
Constant Field Values

DISCOVERED_ITEM_PRELUDE

public static final java.lang.String DISCOVERED_ITEM_PRELUDE
See Also:
Constant Field Values
Constructor Detail

InspectScriptExecutionStep

public InspectScriptExecutionStep(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem inspectedItem,
                                  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)
Method Detail

execute

public com.xebialabs.deployit.plugin.api.execution.Step.Result execute(com.xebialabs.deployit.plugin.api.inspection.InspectionExecutionContext ctx)
                                                                throws java.lang.Exception
Specified by:
execute in interface com.xebialabs.deployit.plugin.api.execution.Step<com.xebialabs.deployit.plugin.api.inspection.InspectionExecutionContext>
Throws:
java.lang.Exception

handleOutputLine

protected boolean handleOutputLine(java.lang.String line,
                                   com.xebialabs.deployit.plugin.api.inspection.InspectionExecutionContext ctx)

isReferenceToParent

protected boolean isReferenceToParent(com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor pd)