Skip to content

Commit 7931ed8

Browse files
feat: deploy from archive
1 parent bb2067a commit 7931ed8

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

  • snakemake_interface_software_deployment_plugins

snakemake_interface_software_deployment_plugins/__init__.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,16 @@ async def archive(self) -> None:
287287
"""
288288
...
289289

290+
@abstractmethod
291+
async def deploy_from_archive(self) -> None:
292+
"""Deploy the environment from self.archive_path to self.deployment_path.
293+
294+
When issuing shell commands, the environment should use
295+
self.run_cmd(cmd: str) in order to ensure that it runs within eventual
296+
parent environments (e.g. a container or an env module).
297+
"""
298+
...
299+
290300
@property
291301
def archive_path(self) -> Path:
292-
return self._archive_prefix / self.hash()
302+
return self._archive_prefix / self.hash()

0 commit comments

Comments
 (0)