com.dtolabs.rundeck.core.execution.impl.jsch
Class JschScpFileCopier

java.lang.Object
  extended by com.dtolabs.rundeck.core.execution.impl.common.BaseFileCopier
      extended by com.dtolabs.rundeck.core.execution.impl.jsch.JschScpFileCopier
All Implemented Interfaces:
FileCopier, Describable

public class JschScpFileCopier
extends BaseFileCopier
implements FileCopier, Describable

JschScpFileCopier is ...


Field Summary
static java.lang.String SERVICE_PROVIDER_TYPE
           
 
Fields inherited from class com.dtolabs.rundeck.core.execution.impl.common.BaseFileCopier
FILE_COPY_DESTINATION_DIR
 
Constructor Summary
JschScpFileCopier(Framework framework)
           
 
Method Summary
 java.lang.String copyFile(ExecutionContext context, java.io.File scriptfile, INodeEntry node)
          Copy the contents of an input stream to the node
 java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node)
          Copy the contents of an input stream to the node
 java.lang.String copyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node)
          Copy the contents of an input stream to the node
 Description getDescription()
          Return the configuration description
 
Methods inherited from class com.dtolabs.rundeck.core.execution.impl.common.BaseFileCopier
appendRemoteFileExtensionForNode, generateRemoteFilepathForNode, getRemoteDirForNode, writeScriptTempFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_PROVIDER_TYPE

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

JschScpFileCopier

public JschScpFileCopier(Framework framework)
Method Detail

getDescription

public Description getDescription()
Description copied from interface: Describable
Return the configuration description

Specified by:
getDescription in interface Describable

copyFileStream

public java.lang.String copyFileStream(ExecutionContext context,
                                       java.io.InputStream input,
                                       INodeEntry node)
                                throws FileCopierException
Description copied from interface: FileCopier
Copy the contents of an input stream to the node

Specified by:
copyFileStream in interface FileCopier
Parameters:
context - context
input - the input stream
Returns:
File path of the file after copying to the node
Throws:
FileCopierException - if an error occurs

copyFile

public java.lang.String copyFile(ExecutionContext context,
                                 java.io.File scriptfile,
                                 INodeEntry node)
                          throws FileCopierException
Description copied from interface: FileCopier
Copy the contents of an input stream to the node

Specified by:
copyFile in interface FileCopier
Parameters:
context - context
scriptfile - local file tocopy
Returns:
File path of the file after copying to the node
Throws:
FileCopierException - if an error occurs

copyScriptContent

public java.lang.String copyScriptContent(ExecutionContext context,
                                          java.lang.String script,
                                          INodeEntry node)
                                   throws FileCopierException
Description copied from interface: FileCopier
Copy the contents of an input stream to the node

Specified by:
copyScriptContent in interface FileCopier
Parameters:
context - context
script - file content string
Returns:
File path of the file after copying to the node
Throws:
FileCopierException - if an error occurs