-
Notifications
You must be signed in to change notification settings - Fork 3
/
xenon-upload.cwl
executable file
·79 lines (79 loc) · 1.76 KB
/
xenon-upload.cwl
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env cwl-runner
# Native:
# xenon --json filesystem sftp --location localhost upload README.md $PWD/copy-of-README.md
# Using cwl-runnner:
# ./xenon-upload.cwl --certfile ~/.ssh/id_rsa --scheme sftp --location [email protected] --source README.md --target $PWD/copy-of-README.md
cwlVersion: v1.0
class: CommandLineTool
doc: Upload file to remote storage
hints:
- class: DockerRequirement
# xenon-cli Docker container needs to be manually build before
dockerImageId: xenonmiddleware/xenon-cli
baseCommand:
- xenon
- '--json'
arguments:
- valueFrom: filesystem
position: 1
- valueFrom: upload
position: 4
inputs:
certfile:
type: File?
doc: Certificate file
inputBinding:
prefix: --certfile
position: 3
username:
type: string?
inputBinding:
prefix: --username
position: 3
password:
type: string?
doc: Password, watch out do not use on systems with untrusted users
inputBinding:
prefix: --password
position: 3
adaptor:
type: string
doc: Adaptor name, eg. file, sftp, ftp
inputBinding:
position: 2
location:
type: string?
doc: List contents of path at location
inputBinding:
prefix: --location
position: 3
# TODO prop should be optional, atm is must be set
# prop:
# doc: Xenon adaptor properties
# type:
# type: array
# items: string
# inputBinding:
# prefix: --prop
# inputBinding:
# position: 3
ignore:
type: boolean
inputBinding:
prefix: --ignore
position: 5
replace:
type: boolean
inputBinding:
prefix: --replace
position: 5
source:
type: File
inputBinding:
position: 6
target:
type: string
inputBinding:
position: 7
outputs: []
stdout: cwl.output.json