Sha256: cf14e83e72dc9dde2a20ccc7c8c4cfc4daeb4b0a7625fbc81797b998757fd7c0

Contents?: true

Size: 575 Bytes

Versions: 69

Compression:

Stored size: 575 Bytes

Contents

module Actions
  module Katello
    module Host
      class AutoAttachSubscriptions < Actions::EntryAction
        middleware.use ::Actions::Middleware::RemoteAction

        def queue
          ::Katello::HOST_TASKS_QUEUE
        end

        def plan(host)
          action_subject(host)
          plan_action(::Actions::Candlepin::Consumer::AutoAttachSubscriptions, :uuid => host.subscription_facet.uuid)
        end

        def finalize
          ::Katello::Pool.import_all
        end

        def resource_locks
          :link
        end
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
katello-4.0.3 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-3.18.5 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-4.0.2.1 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-4.0.2 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-3.18.4 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-4.0.1.2 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-3.18.3.1 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-4.0.1.1 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-3.18.3 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-4.0.1 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-4.0.0 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-4.0.0.rc3.1 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-4.0.0.rc3 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-3.18.2.1 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-3.18.2 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-3.17.3 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-4.0.0.rc2 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-3.18.1.1 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-3.17.2 app/lib/actions/katello/host/auto_attach_subscriptions.rb
katello-4.0.0.rc1 app/lib/actions/katello/host/auto_attach_subscriptions.rb