Sha256: 5e5a994737f87d19869ada4b2d9202ac46e47d143cdeeba3631ec47d2d67e28e

Contents?: true

Size: 594 Bytes

Versions: 78

Compression:

Stored size: 594 Bytes

Contents

module Actions
  module Pulp3
    module Repository
      class UpdateRemote < Pulp3::AbstractAsyncTask
        def plan(repository, smart_proxy)
          if repository.root.url
            repository.backend_service(smart_proxy).create_test_remote if smart_proxy.pulp_primary?
            plan_self(:repository_id => repository.id, :smart_proxy_id => smart_proxy.id)
          end
        end

        def invoke_external_task
          repo = ::Katello::Repository.find(input[:repository_id])
          repo.backend_service(smart_proxy).update_remote
        end
      end
    end
  end
end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
katello-4.7.3 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.7.2 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.7.1 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.6.2.1 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.6.2 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.7.0 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.6.1 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.7.0.rc2 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.7.0.rc1 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.4.2.2 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.4.2.1 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.4.2 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.5.1 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.6.0 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.6.0.rc2 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.6.0.rc1 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.5.0 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.5.0.rc2 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.4.1 app/lib/actions/pulp3/repository/update_remote.rb
katello-4.5.0.rc1 app/lib/actions/pulp3/repository/update_remote.rb