Sha256: 69f1019afcb6b00861b6b427cb97d4ecee05d67d8ca18e4364c13e1ed2704f0c
Contents?: true
Size: 853 Bytes
Versions: 35
Compression:
Stored size: 853 Bytes
Contents
module Actions module Katello module Repository class VerifyChecksum < Actions::EntryAction include Helpers::Presenter include Actions::Katello::PulpSelector def plan(repo) action_subject(repo) if SmartProxy.pulp_primary.pulp3_support?(repo) plan_action(Actions::Pulp3::Repository::Repair, repo.id, SmartProxy.pulp_primary) else options = {} options[:validate_contents] = true plan_action(Actions::Katello::Repository::Sync, repo, nil, options) end end def presenter found = all_planned_actions(Katello::Repository::Sync) found = all_planned_actions(Pulp3::Repository::Repair) if found.empty? Helpers::Presenter::Delegated.new(self, found) end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems