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

Version Path
katello-4.0.3 app/lib/actions/katello/repository/verify_checksum.rb
katello-3.18.5 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.0.2.1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.0.2 app/lib/actions/katello/repository/verify_checksum.rb
katello-3.18.4 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.0.1.2 app/lib/actions/katello/repository/verify_checksum.rb
katello-3.18.3.1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.1.0.rc2.2 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.1.0.rc2.1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.0.1.1 app/lib/actions/katello/repository/verify_checksum.rb
katello-3.18.3 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.1.0.rc2 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.0.1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.1.0.rc1.1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.1.0.rc1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.0.0 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.0.0.rc3.1 app/lib/actions/katello/repository/verify_checksum.rb
katello-4.0.0.rc3 app/lib/actions/katello/repository/verify_checksum.rb
katello-3.18.2.1 app/lib/actions/katello/repository/verify_checksum.rb
katello-3.18.2 app/lib/actions/katello/repository/verify_checksum.rb