Class: Actions::Katello::Repository::UpdateMetadataSync

Inherits:
Base
  • Object
show all
Defined in:
app/lib/actions/katello/repository/update_metadata_sync.rb

Instance Method Summary collapse

Instance Method Details

#plan(repository) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'app/lib/actions/katello/repository/update_metadata_sync.rb', line 5

def plan(repository)
  sequence do
    plan_action(Katello::Repository::MetadataGenerate, repository)
    concurrence do
      ::SmartProxy.with_repo(repository).each do |capsule|
        next if capsule.pulp_primary?
        plan_action(Katello::CapsuleContent::Sync, capsule, repository_id: repository.id)
      end
    end
  end
end