Sha256: 4ee6c815be6df617705c9bd0f3864abb120304892a76d85b1cb1b2ffbacbcd40

Contents?: true

Size: 920 Bytes

Versions: 15

Compression:

Stored size: 920 Bytes

Contents

module Actions
  module Pulp3
    module CapsuleContent
      class VerifyChecksum < Pulp3::AbstractAsyncTask
        def plan(repository, smart_proxy)
          plan_self(:repository_id => repository.id, :smart_proxy_id => smart_proxy.id)
        end

        def invoke_external_task
          repo = ::Katello::Repository.find(input[:repository_id])
          output[:pulp_tasks] = repo.backend_service(smart_proxy).with_mirror_adapter.repair
        end

        def repos_to_repair(smart_proxy, environment, content_view, repository)
          smart_proxy_helper = ::Katello::SmartProxyHelper.new(smart_proxy)
          smart_proxy_helper.lifecycle_environment_check(environment, repository)
          if repository
            [repository]
          else
            smart_proxy_helper.repositories_available_to_capsule(environment, content_view).by_rpm_count
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
katello-4.16.0 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.15.1 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.16.0.rc2 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.16.0.rc1 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.14.3 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.14.2 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.15.0 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.15.0.rc2 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.15.0.rc1 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.14.1 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.14.0 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.14.0.rc3 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.14.0.rc2 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.14.0.rc1.1 app/lib/actions/pulp3/capsule_content/verify_checksum.rb
katello-4.14.0.rc1 app/lib/actions/pulp3/capsule_content/verify_checksum.rb