com.xebialabs.deployit.plugin.python
Class PythonInspectionStep

java.lang.Object
  extended by com.xebialabs.deployit.plugin.python.PythonInspectionStep
All Implemented Interfaces:
com.xebialabs.deployit.plugin.api.flow.PreviewStep, com.xebialabs.deployit.plugin.api.flow.Step, java.io.Serializable

public class PythonInspectionStep
extends java.lang.Object

See Also:
Serialized Form

Field Summary
protected  com.xebialabs.deployit.plugin.api.udm.ConfigurationItem itemToInspect
           
 
Fields inherited from interface com.xebialabs.deployit.plugin.api.flow.Step
DEFAULT_ORDER
 
Constructor Summary
PythonInspectionStep(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem inspectedItem, PythonManagingContainer container, java.lang.String scriptPath, java.util.Map<java.lang.String,java.lang.Object> pythonVars, java.lang.String description)
           
 
Method Summary
protected  java.lang.String aggregateScript(com.xebialabs.overthere.OverthereConnection connection, boolean maskPasswords)
           
protected  com.xebialabs.deployit.plugin.api.flow.StepExitCode doExecute(com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
           
static void dumpPythonScript(java.lang.String scriptName, java.lang.String scriptContents)
           
 com.xebialabs.deployit.plugin.api.flow.StepExitCode execute(com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
           
protected  int executePythonScriptDirectly(com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx, com.xebialabs.overthere.OverthereConnection conn, com.xebialabs.overthere.OverthereFile script)
           
 java.lang.String getDescription()
           
 int getOrder()
           
 com.xebialabs.deployit.plugin.api.flow.Preview getPreview()
           
 void setUploadArtifactData(boolean uploadArtifactData)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

itemToInspect

protected com.xebialabs.deployit.plugin.api.udm.ConfigurationItem itemToInspect
Constructor Detail

PythonInspectionStep

public PythonInspectionStep(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem inspectedItem,
                            PythonManagingContainer container,
                            java.lang.String scriptPath,
                            java.util.Map<java.lang.String,java.lang.Object> pythonVars,
                            java.lang.String description)
Method Detail

getOrder

public int getOrder()

execute

public com.xebialabs.deployit.plugin.api.flow.StepExitCode execute(com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

doExecute

protected com.xebialabs.deployit.plugin.api.flow.StepExitCode doExecute(com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
                                                                 throws java.lang.Exception
Throws:
java.lang.Exception

getPreview

public com.xebialabs.deployit.plugin.api.flow.Preview getPreview()
Specified by:
getPreview in interface com.xebialabs.deployit.plugin.api.flow.PreviewStep

aggregateScript

protected java.lang.String aggregateScript(com.xebialabs.overthere.OverthereConnection connection,
                                           boolean maskPasswords)

executePythonScriptDirectly

protected int executePythonScriptDirectly(com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx,
                                          com.xebialabs.overthere.OverthereConnection conn,
                                          com.xebialabs.overthere.OverthereFile script)

setUploadArtifactData

public void setUploadArtifactData(boolean uploadArtifactData)

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface com.xebialabs.deployit.plugin.api.flow.Step

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

dumpPythonScript

public static void dumpPythonScript(java.lang.String scriptName,
                                    java.lang.String scriptContents)