Commit 8c6f184d authored by theirix's avatar theirix

Update code for manual Cleanup policy invocation


Class `CleanupTagsService` was changed since documentastion update.
Updated instructions to match code (as seen in stable CE).
parent f5cc2c92
...@@ -873,7 +873,7 @@ project.container_repositories.find_each do |repo| ...@@ -873,7 +873,7 @@ project.container_repositories.find_each do |repo|
puts repo.attributes puts repo.attributes
# Start the tag cleanup # Start the tag cleanup
puts Projects::ContainerRepository::CleanupTagsService.new(project, user, policy.attributes.except("created_at", "updated_at")).execute(repo) puts Projects::ContainerRepository::CleanupTagsService.new(repo, user, policy.attributes.except("created_at", "updated_at")).execute()
end end
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment