summaryrefslogtreecommitdiff
path: root/architecture.mdwn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-04-05 15:25:49 +0300
committerLars Wirzenius <liw@liw.fi>2018-04-05 15:25:49 +0300
commitb0539dda52a311c35e6af8c040314796ddca1e56 (patch)
tree9848857a017b0de1e557690662594e3b421f7dda /architecture.mdwn
parent8a48189372ab228a240cc9c63a7ad5342b7f1809 (diff)
downloadick.liw.fi-b0539dda52a311c35e6af8c040314796ddca1e56.tar.gz
Change: example to use shell in an action
Diffstat (limited to 'architecture.mdwn')
-rw-r--r--architecture.mdwn6
1 files changed, 2 insertions, 4 deletions
diff --git a/architecture.mdwn b/architecture.mdwn
index 2261bb2..97763d9 100644
--- a/architecture.mdwn
+++ b/architecture.mdwn
@@ -102,10 +102,8 @@ This might be expressed as an Ick configuration like this:
- rsync_target
actions:
- shell: |
- import subprocess
- def R(*args):
- subprocess.check_call(*args, stdout=None, stderr=None)
- R(['rsync', '-a', '--delete', 'html/.', params['rsync_target']])
+ tgt="$(params | jq .)"
+ rsync -a --delete html/. "$tgt"
Note that pipelines are defined in the configuration by the user.
Eventually, Ick will come with libraries of pre-defined pipelines that