From 1f0698635d2fbc848d6ac6f14c1b03caa57666f0 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 25 Jul 2018 08:23:48 +0300 Subject: Add: some more proposd standard pipelines for ick --- pipelines/persist_workspace.ick | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pipelines/persist_workspace.ick (limited to 'pipelines/persist_workspace.ick') diff --git a/pipelines/persist_workspace.ick b/pipelines/persist_workspace.ick new file mode 100644 index 0000000..3f9a903 --- /dev/null +++ b/pipelines/persist_workspace.ick @@ -0,0 +1,31 @@ +# Lars Wirzenius. +# +# Feel free to use this as you wish. It is simple enough that it is +# probably not even copyrightable. + +pipelines: + + # Save the current contents of the whole workspace, into an artifact + # named in the workspace_name parameter. + + - pipeline: ick/save_workspace + parameters: + - workspace_name + actions: + - archive: workspace + where: host + name_from: workspace_name + + # Restore a previously saved workspace from the artifact named in + # the workspace_name parameter. If no such artifact exists, do + # nothing. If the workspace already has content, it will not be + # touched, except that files that also exist in the artifact will be + # overwritten. + + - pipeline: ick/restore_workspace + parameters: + - workspace_name + actions: + - action: populate_workspace + name_from: workspace_name + where: host -- cgit v1.2.1