com.xebialabs.deployit.plugin.remoting.scripts
Class ScriptUtils

java.lang.Object
  extended by com.xebialabs.deployit.plugin.remoting.scripts.ScriptUtils

public class ScriptUtils
extends java.lang.Object


Field Summary
static java.lang.String MDC_KEY_SCRIPT_PATH
           
 
Constructor Summary
ScriptUtils()
           
 
Method Summary
static void dumpScript(java.lang.String scriptTemplateName, java.lang.String evaluatedScriptContents, org.slf4j.Logger logger)
           
static java.lang.String loadScript(java.lang.String scriptPath)
           
static java.lang.String loadScriptDir(java.lang.String scriptDirPath)
           
static java.lang.String loadScriptFromFile(de.schlichtherle.truezip.file.TFile scriptFile)
           
static com.xebialabs.overthere.OverthereFile uploadScript(com.xebialabs.overthere.OverthereConnection connection, java.lang.String scriptFileNameTemplate, java.lang.String scriptContents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MDC_KEY_SCRIPT_PATH

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

ScriptUtils

public ScriptUtils()
Method Detail

loadScript

public static java.lang.String loadScript(java.lang.String scriptPath)

loadScriptDir

public static java.lang.String loadScriptDir(java.lang.String scriptDirPath)

loadScriptFromFile

public static java.lang.String loadScriptFromFile(de.schlichtherle.truezip.file.TFile scriptFile)
                                           throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

dumpScript

public static void dumpScript(java.lang.String scriptTemplateName,
                              java.lang.String evaluatedScriptContents,
                              org.slf4j.Logger logger)

uploadScript

public static com.xebialabs.overthere.OverthereFile uploadScript(com.xebialabs.overthere.OverthereConnection connection,
                                                                 java.lang.String scriptFileNameTemplate,
                                                                 java.lang.String scriptContents)