Sha256: 6e1be82a3eb6e6806de211b3ac2e1d0ca23d99c3d2eb12db9702bbe85b5cefa5

Contents?: true

Size: 751 Bytes

Versions: 142

Compression:

Stored size: 751 Bytes

Contents

module Actions
  module Pulp3
    module Repository
      class DeleteVersion < Pulp3::AbstractAsyncTask
        def plan(repository, smart_proxy)
          #A version from library might be reused in a composite, or could have been copied
          # from a library repository, so only delete the version if its the last
          if ::Katello::Repository.where(:version_href => repository.version_href).count == 1
            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])
          output[:response] = repo.backend_service(smart_proxy).delete_version
        end
      end
    end
  end
end

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.15.0.rc1 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.14.1 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.14.0 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.14.0.rc3 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.14.0.rc2 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.14.0.rc1.1 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.14.0.rc1 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.13.1 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.13.0 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.12.1 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.13.0.rc1 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.12.0 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.12.0.rc3 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.12.0.rc2 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.12.0.rc1 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.11.1 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.11.0 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.11.0.rc2 app/lib/actions/pulp3/repository/delete_version.rb
katello-4.11.0.rc1 app/lib/actions/pulp3/repository/delete_version.rb