Sha256: 6d61f754a95bc7ab4bf1e2ad8e24d7ea3f344396e8ad9866f65444c612ea00a0

Contents?: true

Size: 614 Bytes

Versions: 53

Compression:

Stored size: 614 Bytes

Contents

module Actions
  module Candlepin
    module Consumer
      class RemoveSubscription < Candlepin::Abstract
        middleware.use Actions::Middleware::KeepCurrentUser

        input_format do
          param :uuid, String
          param :entitlement_id, String
          param :pool_id, String
        end

        def run
          ::Katello::Resources::Candlepin::Consumer.remove_entitlement(input[:uuid], input[:entitlement_id])
        end

        def finalize
          pool = ::Katello::Pool.where(:cp_id => input[:pool_id]).first
          pool.import_data if pool
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
katello-3.9.1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.9.0 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.8.1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.9.0.rc2 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.9.0.rc1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.7.1.1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.7.1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.8.0 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.8.0.rc3 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.8.0.rc2 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.7.0 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.8.0.rc1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.7.0.rc2 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.7.0.rc1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.5.2 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.6.0 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.6.0.1.rc2 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.6.0.rc2 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.6.0.rc1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-3.5.1.1 app/lib/actions/candlepin/consumer/remove_subscription.rb