Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimal implementation of a
ora2
as an uncurl
variant
The basic idea here is: - Once we can describe the structure of a RIA store in an `uncurl` URL template, generic implementations can handle actual operations - We need a dataset ID for this, and take it either from the traditional `archive-id` remote parameter, or the DataLad dataset ID in the repo - With this information and the base URL from the `url` parameter, we build the `uncurl` URL template, and write it into the active config (as an override). From there `uncurl` picks it up, and we ensure this by running its `prepare()` in the `ora2` `prepare()` method last. An included test confirm the basic principle by copying an annex key to a local (`file://` RIA store) via a standard `git annex copy` operation. This setup is particularly attractive, because now specialized URL handlers can also be selected via standard `uncurl` means for handler selection (based on URL matching, which includes protocol switching). If this is working as expected, we can have things like a persistent-SSH-shell handler to only be active for particular hosts (and even only temporarily). This changeset includes several TODOs that outline further steps that need to be approached in the future.
- Loading branch information