Sha256: ca97d7aaa321adabe0ac9a87a5205dc732d3dd09370a87ba047615fb60ead34a
Contents?: true
Size: 851 Bytes
Versions: 4
Compression:
Stored size: 851 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_master.pulp3_support?(repo) plan_action(Actions::Pulp3::Repository::Repair, repo.id, SmartProxy.pulp_master) 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
4 entries across 4 versions & 1 rubygems