Katello/katello

View on GitHub
app/lib/actions/candlepin/product/content_destroy.rb

Summary

Maintainability
A
20 mins
Test Coverage
module Actions
  module Candlepin
    module Product
      class ContentDestroy < Candlepin::Abstract
        input_format do
          param :content_id
          param :owner
        end

        def run
          output[:response] = ::Katello::Resources::Candlepin::Content.
              destroy(input[:owner], input[:content_id])
        end
      end
    end
  end
end