ansible / mazer

Experimental Ansible Galaxy Content Manager
GNU General Public License v3.0
114 stars 18 forks source link

Add a way to just download the artifact with same cli args style as 'install' #269

Open alikins opened 5 years ago

alikins commented 5 years ago

Feature Request

Use Case

pulp_ansible needs it to match downloads for the equivalent 'mazer install foo.bar,sdsdf=1.2.3'. It would also be generally useful. Other similar tools offer the feature.

Currently mazer downloads the artifacts, but stores it in a tmp dir and deletes after extract. For the most part, --download or 'fetch' would just not delete and use a particular path instead of a tmp dir.

Proposed Solution

Describe the solution you'd like A clear and concise description of what you want to happen. Add any considered drawbacks.

mazer download --dest /var/spool/pulp/ansible/whatever/ alikins.collection_reqs_test,1.2.3

That would download the artifact for alikins.collection_reqs_test version 1.2.3, plus the artifacts of it's dependencies, and save the artifacts in /var/spool/pulp/ansible/whatever/

What does "same cli args style as 'install'" mean? Who knows! See https://github.com/ansible/mazer/issues/24

bmbouter commented 5 years ago

pulp_ansible would like to make use of this. I would like to test any PR you make. Thank you for writing this up!