<tool id="toS3" name="toS3" version="1.0.1">
    <description>
        To send to a S3 storage
    </description>
    <command detect_errors="exit_code">
      unzip ${inputData};
      ls;
      aws s3 cp analyse_simulations_STICS s3://${Bucket}/${objectPath} --recursive --endpoint-url \${S3_ENDPOINT};
      echo "bla" > ${output};
    </command>
    <inputs>
        <param name="inputData" type="data" format="zip" label="zip data file"/>
        <param name="objectPath" type="text" value= "RM/ICHEC-EC-EARTH" label="a path to the object"/>
        <param name="Bucket" type="text" value="dairyfit-simulations" label="the bucket where to store"/>
    </inputs>
    <outputs>
      <data format="text" name="output" label="dummy"/>
    </outputs>
    <tests>
    </tests>
    <help>
Documentation
-------------
A tool to unzip and send a folder to S3

Credits
-------
-  Galaxy Tool Maintainer: Patrick Chabrier patrick.chabrier@inrae.fr
-  Tool Site: https://forge.inrae.fr/dairyfit/lot2/dairyfit-toolbox
-  Copyright: INRAE
    </help>
</tool>
