gogoair / lavatory

Tooling to define repository specific retention policies in Artifactory.
Apache License 2.0
21 stars 14 forks source link

Feature/list policies #15

Closed ndcampbell closed 6 years ago

ndcampbell commented 6 years ago
$ lavatory policies --policies-path ~/work/artifactory-policies/policies --repo yum-local
[INFO] lavatory.utils.setup_pluginbase Searching for policies in ['/Users/dcampbell/work/artifactory-policies/policies', '/Users/dcampbell/work/lavatory/src/lavatory/utils/../policies']
[INFO] lavatory.commands.policies yum-local - Default retention policy. Keep artifacts for 30 days.
[{"repo": "yum-local", "policy": "Default retention policy. Keep artifacts for 30 days."}]

This will print out the policies and their descriptions. Will be used for auto-generating a table of policies

bazimov commented 6 years ago

Looks good to me.