-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.nf
39 lines (32 loc) · 843 Bytes
/
main.nf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Channel.fromPath("$baseDir/data/lorem.txt").dump(tag: 'lorem').set { LoremChannel }
println """
========================
CONTAINER ..... : $workflow.container
ENGINE ........ : $workflow.containerEngine
========================
""".stripIndent()
process testProcess {
echo true
label 'scratchyScratch'
input:
file lorem_in from LoremChannel
output:
file lorem_out
script:
println """
========================
EXECUTOR ... : ${task.executor}
SCRATCH .... : ${task.scratch}
CONTAINER .. : ${task.container}
========================
""".stripIndent()
"""
echo "hostname: "\$(hostname)
echo "This is PWD : "$PWD
echo "This is \\PWD (escaped) : "\$PWD
echo "This is pwd (from subshell) : \$(pwd)"
echo "TMPDIR : $TMPDIR"
echo "\\TMPDIR (escaped) : \$TMPDIR"
cat ${lorem_in} > lorem_out
"""
}