Class LocalFileCopier
- java.lang.Object
-
- com.dtolabs.rundeck.core.execution.impl.common.BaseFileCopier
-
- com.dtolabs.rundeck.core.execution.impl.local.LocalFileCopier
-
- All Implemented Interfaces:
FileCopier
public class LocalFileCopier extends BaseFileCopier implements FileCopier
LocalFileCopier is ...
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSERVICE_PROVIDER_TYPE-
Fields inherited from class com.dtolabs.rundeck.core.execution.impl.common.BaseFileCopier
DEFAULT_UNIX_FILE_EXT, DEFAULT_WINDOWS_FILE_EXT, FILE_COPY_DESTINATION_DIR, FRAMEWORK_FILE_COPY_DESTINATION_DIR, PROJECT_FILE_COPY_DESTINATION_DIR
-
-
Constructor Summary
Constructors Constructor Description LocalFileCopier(Framework framework)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcopyFile(ExecutionContext context, java.io.File file, INodeEntry node, java.lang.String destination)Copy the contents of an input stream to the nodejava.lang.StringcopyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destination)Copy the contents of an input stream to the nodejava.lang.StringcopyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node, java.lang.String destination)Copy the contents of an input stream to the nodevoidsetDisableLocalExecutor(boolean disableLocalExecutor)-
Methods inherited from class com.dtolabs.rundeck.core.execution.impl.common.BaseFileCopier
appendRemoteFileExtension, defaultRemoteFileExtensionForNode, generateRemoteFilepathForNode, generateRemoteFilepathForNode, generateRemoteFilepathForNode, generateRemoteFilepathForNode, getRemoteDirForNode, getRemoteDirForNode, writeLocalFile, writeTempFile
-
-
-
-
Field Detail
-
SERVICE_PROVIDER_TYPE
public static final java.lang.String SERVICE_PROVIDER_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LocalFileCopier
public LocalFileCopier(Framework framework)
-
-
Method Detail
-
setDisableLocalExecutor
public void setDisableLocalExecutor(boolean disableLocalExecutor)
-
copyFileStream
public java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destination) throws FileCopierException
Description copied from interface:FileCopierCopy the contents of an input stream to the node- Specified by:
copyFileStreamin interfaceFileCopier- Parameters:
context- contextinput- the input streamnode- nodedestination- the full path destination for the file- 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 file, INodeEntry node, java.lang.String destination) throws FileCopierException
Description copied from interface:FileCopierCopy the contents of an input stream to the node- Specified by:
copyFilein interfaceFileCopier- Parameters:
context- contextfile- local file tocopynode- nodedestination- the full path destination for the file- 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, java.lang.String destination) throws FileCopierException
Description copied from interface:FileCopierCopy the contents of an input stream to the node- Specified by:
copyScriptContentin interfaceFileCopier- Parameters:
context- contextscript- file content stringnode- nodedestination- the full path destination for the file- Returns:
- File path of the file after copying to the node
- Throws:
FileCopierException- if an error occurs
-
-