Sha256: d5c99251e2fe6f2a7d9e34e141df9f6499e3d2c2d2952aee51aed24397adeb80

Contents?: true

Size: 546 Bytes

Versions: 141

Compression:

Stored size: 546 Bytes

Contents

module Actions
  module Candlepin
    module Consumer
      class RemoveSubscription < Candlepin::Abstract
        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
        end
      end
    end
  end
end

Version data entries

141 entries across 141 versions & 1 rubygems

Version Path
katello-4.16.0 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.15.1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.16.0.rc2 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.16.0.rc1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.14.3 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.14.2 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.15.0 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.15.0.rc2 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.15.0.rc1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.14.1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.14.0 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.14.0.rc3 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.14.0.rc2 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.14.0.rc1.1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.14.0.rc1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.13.1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.13.0 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.12.1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.13.0.rc1 app/lib/actions/candlepin/consumer/remove_subscription.rb
katello-4.12.0 app/lib/actions/candlepin/consumer/remove_subscription.rb