Merge lp:~sseman/workspace-runner/download-logs into lp:workspace-runner
Proposed by
Seman
Status: | Merged |
---|---|
Merged at revision: | 25 |
Proposed branch: | lp:~sseman/workspace-runner/download-logs |
Merge into: | lp:workspace-runner |
Diff against target: |
126 lines (+62/-0) 3 files modified
examples/download-dir.yaml (+5/-0) workspace_runner/__init__.py (+17/-0) workspace_runner/tests/__init__.py (+40/-0) |
To merge this branch: | bzr merge lp:~sseman/workspace-runner/download-logs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Review via email: mp+273788@code.launchpad.net |
Description of the change
This branch adds a support for copying a log (or any other) directory from remote to local. When "logs" is added to the config file, it will copy the stated directory from remote machine to local:
install:
doc: [README]
command: ["cool", "command"]
logs:
remote_logs: "/workspace/logs"
In the above example, it will copy the remote directory "remote_logs" to local "/workspace/logs" directory. The "remote_logs" path is relative to the temp directory created by the Workspace Runner.
To post a comment you must log in.
I can live with the functionality, but I don't think "logs" is the right word, because
1. it's downloading directories containing logs, not just logs.
2. it can download arbitrary directories, not just those containing logs.
I suggest "download-dir".
Please add an example yaml file.