Sha256: 1b89f86bad4231877614daabf78b13c230eda829f09b21f7988d7d2cf82753b1
Contents?: true
Size: 662 Bytes
Versions: 30
Compression:
Stored size: 662 Bytes
Contents
module Actions module Katello module Repository class UpdateMetadataSync < Actions::Base def plan(repository) sequence do plan_action(Katello::Repository::MetadataGenerate, repository) concurrence do (::SmartProxy.unscoped.with_repo(repository).select { |sp| sp.authorized?(:manage_capsule_content) && sp.authorized?(:view_capsule_content) })&.each do |capsule| next if capsule.pulp_primary? plan_action(Katello::CapsuleContent::Sync, capsule, repository_id: repository.id) end end end end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems