Sha256: 266360ebd34faba0ab638dd3de4c56ffe662b449e88e07d466c60fb57799ec3c

Contents?: true

Size: 612 Bytes

Versions: 35

Compression:

Stored size: 612 Bytes

Contents

module Actions
  module Pulp
    module Repository
      class Clear < Actions::Pulp::AbstractAsyncTask
        def plan(repo, smart_proxy)
          plan_self(:repo_id => repo.id, :smart_proxy_id => smart_proxy.id) unless (repo.yum? || repo.empty_in_pulp?)
        end

        def invoke_external_task
          repo = ::Katello::Repository.find(input[:repo_id])
          ::Katello::RepositoryTypeManager.find(repo.content_type).content_types.map do |type|
            ::SmartProxy.unscoped.find(input[:smart_proxy_id]).content_service(type).remove(repo)
          end
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
katello-4.7.6 app/lib/actions/pulp/repository/clear.rb
katello-4.7.5 app/lib/actions/pulp/repository/clear.rb
katello-4.7.4 app/lib/actions/pulp/repository/clear.rb
katello-4.7.3 app/lib/actions/pulp/repository/clear.rb
katello-4.7.2 app/lib/actions/pulp/repository/clear.rb
katello-4.7.1 app/lib/actions/pulp/repository/clear.rb
katello-4.6.2.1 app/lib/actions/pulp/repository/clear.rb
katello-4.6.2 app/lib/actions/pulp/repository/clear.rb
katello-4.7.0 app/lib/actions/pulp/repository/clear.rb
katello-4.6.1 app/lib/actions/pulp/repository/clear.rb
katello-4.7.0.rc2 app/lib/actions/pulp/repository/clear.rb
katello-4.7.0.rc1 app/lib/actions/pulp/repository/clear.rb
katello-4.4.2.2 app/lib/actions/pulp/repository/clear.rb
katello-4.4.2.1 app/lib/actions/pulp/repository/clear.rb
katello-4.4.2 app/lib/actions/pulp/repository/clear.rb
katello-4.5.1 app/lib/actions/pulp/repository/clear.rb
katello-4.6.0 app/lib/actions/pulp/repository/clear.rb
katello-4.6.0.rc2 app/lib/actions/pulp/repository/clear.rb
katello-4.6.0.rc1 app/lib/actions/pulp/repository/clear.rb
katello-4.5.0 app/lib/actions/pulp/repository/clear.rb