Sha256: b277370c6e648243b5f32ba5c3fc656d13dbdca914a7631870ebc84267bec48c

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

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

        def plan(system)
          system.disable_auto_reindex!
          action_subject system
          plan_action(::Actions::Candlepin::Consumer::AutoAttachSubscriptions, system) if ::SETTINGS[:katello][:use_cp]
          plan_action(ElasticSearch::Reindex, system) if ::SETTINGS[:katello][:use_elasticsearch]
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
katello-2.4.0.rc2 app/lib/actions/katello/system/auto_attach_subscriptions.rb
katello-2.4.0.rc1 app/lib/actions/katello/system/auto_attach_subscriptions.rb