Sha256: 835fb185ce5fa892dcc307357dd3668d14a375d679f1af1f99c7560f3aabf411

Contents?: true

Size: 801 Bytes

Versions: 53

Compression:

Stored size: 801 Bytes

Contents

module Actions
  module Katello
    module Repository
      class VerifyChecksum < Actions::EntryAction
        include Helpers::Presenter

        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, 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

53 entries across 53 versions & 1 rubygems

Version Path
katello-4.8.4 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.9.1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.8.3 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.9.0 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.7.6 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.8.2 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.9.0.rc2 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.9.0.rc1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.8.1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.7.5 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.8.0 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.8.0.rc2 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.7.4 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.8.0.rc1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.7.3 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.7.2 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.7.1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.6.2.1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.6.2 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.7.0 app/lib/actions/katello/repository/verify_checksum.rb