| 1 | write_local: |
| 2 | - exec_local: | |
| 3 | mkdir -p $(dirname @1); |
| 4 | cat >@1 <<EOF |
| 5 | @2 |
| 6 | EOF |
| 7 | |
| 8 | write_in: |
| 9 | - exec_in: | |
| 10 | mkdir -p $(dirname @1); |
| 11 | cat >@1 <<EOF |
| 12 | @2 |
| 13 | EOF |
| 14 | |
| 15 | write_out: |
| 16 | - exec_out: | |
| 17 | mkdir -p $(dirname @1); |
| 18 | cat >@1 <<EOF |
| 19 | @2 |
| 20 | EOF |
| 21 | |
| 22 | append_local: |
| 23 | - exec_local: | |
| 24 | mkdir -p $(dirname @1); |
| 25 | cat >>@1 <<EOF |
| 26 | @2 |
| 27 | EOF |
| 28 | |
| 29 | append_in: |
| 30 | - exec_in: | |
| 31 | mkdir -p $(dirname @1); |
| 32 | cat >>@1 <<EOF |
| 33 | @2 |
| 34 | EOF |
| 35 | |
| 36 | append_out: |
| 37 | - exec_out: | |
| 38 | mkdir -p $(dirname @1); |
| 39 | cat >>@1 <<EOF |
| 40 | @2 |
| 41 | EOF |
| 42 | |
| 43 | local2out: |
| 44 | - exec_out: | |
| 45 | mkdir -p $(dirname @2)" |
| 46 | - pipe: |
| 47 | - exec_local: cat @1 |
| 48 | - exec_out: cat > @2 |
| 49 | |
| 50 | local2in: |
| 51 | - exec_in: mkdir -p $(dirname @2) |
| 52 | - pipe: |
| 53 | - exec_local: cat @1 |
| 54 | - exec_in: cat > @2 |
| 55 | |
| 56 | out2local: |
| 57 | - exec_local: mkdir -p $(dirname @2) |
| 58 | - pipe: |
| 59 | - exec_out: cat @1 |
| 60 | - exec_local: cat > @2 |
| 61 | |
| 62 | out2in: |
| 63 | - exec_in: mkdir -p $(dirname @2) |
| 64 | - pipe: |
| 65 | - exec_out: cat @1 |
| 66 | - exec_in: cat > @2 |
| 67 | |
| 68 | in2local: |
| 69 | - exec_local: mkdir -p $(dirname @2) |
| 70 | - pipe: |
| 71 | - exec_in: cat @1 |
| 72 | - exec_local: cat > @2 |
| 73 | |
| 74 | in2out: |
| 75 | - exec_out: mkdir -p $(dirname @2) |
| 76 | - pipe: |
| 77 | - exec_in: cat @1 |
| 78 | - exec_out: cat > @2 |
| 79 | |
| 80 | check_cmd_out: |
| 81 | - rescue: |
| 82 | - exec_out: command -V @1 2> /dev/null |
| 83 | - breakpoint: "@1 is missing from out_context" |
| 84 | |
| 85 | check_cmd_local: |
| 86 | - rescue: |
| 87 | - exec_local: command -V @1 2> /dev/null |
| 88 | - breakpoint: "@1 is missing from local_context" |
| 89 | |
| 90 | check_cmd_in: |
| 91 | - rescue: |
| 92 | - exec_in: command -V @1 2> /dev/null |
| 93 | - breakpoint: "@1 is missing from in_context" |
| 94 | |
| 95 | umount_out: |
| 96 | - exec_out: | |
| 97 | echo "try umount @1..." ; mountpoint -q "@1" && umount -f -l "@1" || true |
| 98 | |
| 99 | umount_local: |
| 100 | - exec_local: | |
| 101 | echo "try umount @1..." ; mountpoint -q "@1" && umount -f -l "@1" || true |
| 102 | |
| 103 | umount_in: |
| 104 | - exec_in: | |
| 105 | echo "try umount @1..." ; mountpoint -q "@1" && umount -f -l "@1" || true |
| 106 | |
| 107 | download_file_in: |
| 108 | - exec_in: __download "@1" "@2" |
| 109 | |
| 110 | download_file_out: |
| 111 | - exec_out: __download "@1" "@2" |
| 112 | |
| 113 | download_file_local: |
| 114 | - exec_local: __download "@1" "@2" |