Fields inherited from class | Fields |
---|---|
class DefaultTask |
TASK_NAME, TASK_DESCRIPTION, TASK_GROUP, TASK_TYPE, TASK_DEPENDS_ON, TASK_OVERWRITE, TASK_ACTION, TASK_CONSTRUCTOR_ARGS |
Type | Name and description |
---|---|
Property<Boolean> |
compressed Whether to leave file in its compressed state or not. |
Property<String> |
hostPath Path on host to write remotePath to or into. |
Property<String> |
remotePath Path inside container |
Constructor and description |
---|
DockerCopyFileFromContainer
() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
runRemoteCommand() |
Whether to leave file in its compressed state or not. Docker CP command hands back a tar stream regardless if we asked for a regular file or directory. Thus, we can give the caller back the tar file as-is or explode it to some destination like 'docker cp' does.
Path on host to write remotePath to or into. If hostPath does not exist it will be created relative to what we need it to be (e.g. regular file or directory). This is consistent with how 'docker cp' behaves.
Groovy Documentation