comparison macros.xml @ 0:fa1a61331039 draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
author bgruening
date Wed, 24 Apr 2019 06:12:05 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:fa1a61331039
1 <?xml version="1.0"?>
2 <macros>
3 <xml name="inputs_outputs">
4 <inputs>
5 <param format="tabular" help="" label="Input tabular dataset" name="in_file" type="data" />
6 <yield />
7 </inputs>
8 <outputs>
9 <data format="tabular" name="out_file" label="${tool.name} on ${on_string}" />
10 </outputs>
11 </xml>
12
13 <xml name="requirements">
14 <requirements>
15 <requirement type="package" version="@PG_VERSION@">postgresql</requirement>
16 <requirement type="package" version="0.1">pglite</requirement>
17 </requirements>
18 </xml>
19
20 <token name="@PG_VERSION@">11.2</token>
21
22 <token name="@HELP_FOOTER@">
23 The postgresql tools, are using a postgresql database in user-space. Databases are packed into a tarball and stored in the user-history.
24 </token>
25
26 <token name="@UNTAR_INFILE@"><![CDATA[
27 tar -xjvf '$infile' &&
28 export PWD=`pwd` &&
29 sed -i.bak "s|unix_socket_directories.*|unix_socket_directories = '\$PWD/postgresql/'|" ./postgresql/db/postgresql.conf
30 ]]>
31 </token>
32
33 <token name="@PG_SETUP@"><![CDATA[
34 pglite setup -d ./postgresql &&
35 @PG_START@
36 ]]>
37 </token>
38
39 <token name="@PSQL@"><![CDATA[
40 psql "\$(pglite url -d ./postgresql)"
41 ]]>
42 </token>
43
44 <token name="@STATUS_RUNNING@"><![CDATA[
45 timeout 60 bash -c 'until pglite status -d ./postgresql | grep -F -q "server is running"; do sleep 1; done' &&
46 pglite status -d ./postgresql &&
47 timeout 60 bash -c 'until ls -la ./postgresql | grep -F -q ".s.PGSQL.5432"; do sleep 1; done'
48 && pglite status -d ./postgresql
49 ]]>
50 </token>
51
52 <token name="@STOPPED@"><![CDATA[
53 timeout 60 bash -c 'until pglite status -d ./postgresql | grep -F -q "no server running"; do sleep 1; done'
54 ]]>
55 </token>
56
57 <token name="@PG_START@"><![CDATA[
58 pglite start -d ./postgresql &&
59 @STATUS_RUNNING@
60 ]]>
61 </token>
62
63 <token name="@PG_STOP@"><![CDATA[
64 pglite stop -d ./postgresql &&
65 @STOPPED@
66 ]]>
67 </token>
68
69 <token name="@ARCHIVE_DATABASE@"><![CDATA[
70 tar -cvjf postgresql_out.tar.bz2 postgresql
71 ]]>
72 </token>
73 <xml name="citations">
74 <citations></citations>
75 </xml>
76 </macros>