|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.rundeck.core.execution.impl.common.BaseFileCopier
com.dtolabs.rundeck.core.execution.impl.jsch.JschScpFileCopier
public class JschScpFileCopier
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 |
copyFile(ExecutionContext context,
java.io.File file,
INodeEntry node,
java.lang.String destination)
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 |
copyFileStream(ExecutionContext context,
java.io.InputStream input,
INodeEntry node,
java.lang.String destination)
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 |
java.lang.String |
copyScriptContent(ExecutionContext context,
java.lang.String script,
INodeEntry node,
java.lang.String destination)
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, writeLocalFile, writeScriptTempFile, writeTempFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SERVICE_PROVIDER_TYPE
Constructor Detail |
---|
public JschScpFileCopier(Framework framework)
Method Detail |
---|
public Description getDescription()
Describable
getDescription
in interface Describable
public java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node) throws FileCopierException
FileCopier
copyFileStream
in interface FileCopier
context
- contextinput
- the input stream
FileCopierException
- if an error occurspublic java.lang.String copyFile(ExecutionContext context, java.io.File scriptfile, INodeEntry node) throws FileCopierException
FileCopier
copyFile
in interface FileCopier
context
- contextscriptfile
- local file tocopy
FileCopierException
- if an error occurspublic java.lang.String copyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node) throws FileCopierException
FileCopier
copyScriptContent
in interface FileCopier
context
- contextscript
- file content string
FileCopierException
- if an error occurspublic java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destination) throws FileCopierException
DestinationFileCopier
copyFileStream
in interface DestinationFileCopier
context
- contextinput
- the input streamdestination
- the full path destination for the file
FileCopierException
- if an error occurspublic java.lang.String copyFile(ExecutionContext context, java.io.File file, INodeEntry node, java.lang.String destination) throws FileCopierException
DestinationFileCopier
copyFile
in interface DestinationFileCopier
context
- contextfile
- local file tocopydestination
- the full path destination for the file
FileCopierException
- if an error occurspublic java.lang.String copyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node, java.lang.String destination) throws FileCopierException
DestinationFileCopier
copyScriptContent
in interface DestinationFileCopier
context
- contextscript
- file content stringdestination
- the full path destination for the file
FileCopierException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |