Sha256: 7ff6017537e79228c993e0575aa39c1c68d8be7106e8aa31b08128efae3cdc94

Contents?: true

Size: 216 Bytes

Versions: 20

Compression:

Stored size: 216 Bytes

Contents

# frozen_string_literal: true

module ForemanWebhooks
  class EventSubscriber < ::Foreman::BaseSubscriber
    def call(event)
      ::Webhook.deliver(event_name: event.name, payload: event.payload)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
foreman_webhooks-3.2.2 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-3.1.1 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-3.2.1 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-3.2.0 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-3.1.0 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-3.0.5 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-2.0.3 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-3.0.4 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-2.0.2 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-3.0.3 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-3.0.2 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-3.0.1 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-2.0.1 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-3.0.0 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-2.0.0 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-1.1.0 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-1.0.0 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-0.0.3 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-0.0.2 app/subscribers/foreman_webhooks/event_subscriber.rb
foreman_webhooks-0.0.1 app/subscribers/foreman_webhooks/event_subscriber.rb