criteo-cookbooks / nexus3

Chef cookbook to install and configure Sonatype Nexus 3 Repository Manager
http://www.sonatype.com/download-oss-sonatype
MIT License
17 stars 17 forks source link

Generic task resource to support all types #115

Closed Mat-Co closed 3 years ago

Mat-Co commented 4 years ago

Previous task resource permitted only script tasks. Make the resource more generic so any kind of task can be created.

Usage examples can be found in api_examples/task.rb.

Since there is a lot of task types, i didn't created a chef resource for each one. Instead, you need to pass the task's typeId and other properties in a hash with specific keys, according to the desired task.

jeremy-clerc commented 3 years ago

This looks ok to me, but as I have added two commits, letting someone else approving.