Skip to content

Commit

Permalink
Merge pull request #133 from madsi1m/aarnetfilesender
Browse files Browse the repository at this point in the history
FileSender: make recipient optional
  • Loading branch information
mthang authored Sep 23, 2024
2 parents 43e4587 + df8f554 commit 2cfa699
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
13 changes: 13 additions & 0 deletions tools/aarnetfilesender/.shed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: aarnet_filesender
owner: galaxy-australia
homepage_url: https://filesender.aarnet.edu.au
remote_repository_url: https://github.com/usegalaxy-au/tools-au/tree/master/tools/aarnetfilesender
categories:
- Data Export
type: unrestricted
description: Transfer files to AARNet's FileSender Service
long_description: Transfer files to AARNet's FileSender Service
include:
- filesender.xml
- macros.xml
- test-data
25 changes: 12 additions & 13 deletions tools/aarnetfilesender/filesender.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,15 @@ filesender -p -u '$apiuser' -a '$apikey' -b https://filesender.aarnet.edu.au/res
]]></command>
<inputs>
<param name="data" type="data" format="txt,data" multiple="true" optional="false" label="Datasets to be sent:" />
<param name="to" type="text" optional="false" label="Email address of recipent:"><sanitizer sanitize="False"/></param>
<param name="to" type="text" optional="true" label="Email address of recipent:"><sanitizer sanitize="False"/></param>
</inputs>
<outputs>
<data name="output" type="data" format="txt" hidden="false"/>
<data name="output" format="txt" hidden="false"/>
</outputs>
<tests>
<!-- TODO planemo failed due to both username and apikey are null-->
<test>
<param name="data" value="summary_statistics.txt"/>
<output name="output">
<assert_contents>
<has_text text="Uploading"/>
<has_text text="log complete"/>
<has_text text="Upload Complete"/>
</assert_contents>
</output>
</test>
<test expect_exit_code="1" expect_failure="true">
<param name="data" value="summary_statistics.txt"/>
</test>
</tests>
<help>
**What it does**
Expand All @@ -59,4 +51,11 @@ filesender -p -u '$apiuser' -a '$apikey' -b https://filesender.aarnet.edu.au/res
This tool leverages AARNet's FileSender (https://filesender.aarnet.edu.au)
to send files out of Galaxy.
</help>
<citations>
<citation type="bibtex">
@misc{FileSenderCLI_github,
title={FileSenderCLI Github page},
url = {https://github.com/madsi1m/FileSenderCLI},}
</citation>
</citations>
</tool>

0 comments on commit 2cfa699

Please sign in to comment.