Sha256: ec4a4c1cba1d47d28c103469b11931a67fc1de7f3fedf4af92826ae07ac4edda

Contents?: true

Size: 655 Bytes

Versions: 165

Compression:

Stored size: 655 Bytes

Contents

module Actions
  module Katello
    module UpstreamSubscriptions
      class RemoveEntitlement < Actions::Base
        middleware.use Actions::Middleware::PropagateCandlepinErrors

        input_format do
          param :entitlement_id
          param :sub_name
        end

        def run
          output[:response] = ::Katello::Resources::Candlepin::UpstreamConsumer.remove_entitlement(input[:entitlement_id])
        rescue ::Katello::Errors::UpstreamEntitlementGone
          output[:response] = _("%s has already been deleted" % input[:sub_name])
        end

        def run_progress_weight
          0.01
        end
      end
    end
  end
end

Version data entries

165 entries across 165 versions & 1 rubygems

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