Sha256: 147277e4e5d01e62b35475389cb15eb6220182b3e05c3fdac7ceeb153b06053e

Contents?: true

Size: 500 Bytes

Versions: 53

Compression:

Stored size: 500 Bytes

Contents

module Actions
  module Pulp
    module Repository
      class Destroy < Pulp::AbstractAsyncTask
        input_format do
          param :pulp_id
          param :capsule_id
        end

        def invoke_external_task
          output[:pulp_tasks] = pulp_extensions.repository.delete(input[:pulp_id])
        rescue RestClient::ResourceNotFound
          Rails.logger.warn("Tried to delete repository #{input[:pulp_id]}, but it did not exist.")
          []
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
katello-3.11.2 app/lib/actions/pulp/repository/destroy.rb
katello-3.10.2 app/lib/actions/pulp/repository/destroy.rb
katello-3.10.1.1 app/lib/actions/pulp/repository/destroy.rb
katello-3.10.1 app/lib/actions/pulp/repository/destroy.rb
katello-3.11.1 app/lib/actions/pulp/repository/destroy.rb
katello-3.11.0 app/lib/actions/pulp/repository/destroy.rb
katello-3.11.0.rc2 app/lib/actions/pulp/repository/destroy.rb
katello-3.11.0.rc1 app/lib/actions/pulp/repository/destroy.rb
katello-3.10.0 app/lib/actions/pulp/repository/destroy.rb
katello-3.10.0.rc1.1 app/lib/actions/pulp/repository/destroy.rb
katello-3.9.1 app/lib/actions/pulp/repository/destroy.rb
katello-3.10.0.rc1 app/lib/actions/pulp/repository/destroy.rb
katello-3.9.0 app/lib/actions/pulp/repository/destroy.rb
katello-3.8.1 app/lib/actions/pulp/repository/destroy.rb
katello-3.9.0.rc2 app/lib/actions/pulp/repository/destroy.rb
katello-3.9.0.rc1 app/lib/actions/pulp/repository/destroy.rb
katello-3.7.1.1 app/lib/actions/pulp/repository/destroy.rb
katello-3.7.1 app/lib/actions/pulp/repository/destroy.rb
katello-3.8.0 app/lib/actions/pulp/repository/destroy.rb
katello-3.8.0.rc3 app/lib/actions/pulp/repository/destroy.rb