Sha256: d41b5308753de84fb27a596e939f56d73be325aa06690729c2dd75fed672faea

Contents?: true

Size: 276 Bytes

Versions: 8

Compression:

Stored size: 276 Bytes

Contents

module ForemanRhCloud
  class InsightsSubscriber < ::Foreman::BaseSubscriber
    def call(*args)
      host = args.first.payload[:object]
      host_status = host.get_status(InsightsClientReportStatus)
      host_status.update(status: host_status.to_status)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
foreman_rh_cloud-3.0.24 app/subscribers/foreman_rh_cloud/insights_subscriber.rb
foreman_rh_cloud-4.0.24 app/subscribers/foreman_rh_cloud/insights_subscriber.rb
foreman_rh_cloud-3.0.23 app/subscribers/foreman_rh_cloud/insights_subscriber.rb
foreman_rh_cloud-4.0.23 app/subscribers/foreman_rh_cloud/insights_subscriber.rb
foreman_rh_cloud-3.0.22 app/subscribers/foreman_rh_cloud/insights_subscriber.rb
foreman_rh_cloud-4.0.22 app/subscribers/foreman_rh_cloud/insights_subscriber.rb
foreman_rh_cloud-4.0.21.1 app/subscribers/foreman_rh_cloud/insights_subscriber.rb
foreman_rh_cloud-3.0.21 app/subscribers/foreman_rh_cloud/insights_subscriber.rb