Sha256: 81e1ccabc9718fff37f9d03d37fecce856cd547e01b59274213618aad4eec351

Contents?: true

Size: 276 Bytes

Versions: 46

Compression:

Stored size: 276 Bytes

Contents

module Shipit
  class EmitEventJob < BackgroundJob
    queue_as :hooks

    def perform(params)
      event, stack_id, payload = params.with_indifferent_access.values_at('event', 'stack_id', 'payload')
      Hook.deliver(event, stack_id, JSON.load(payload))
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
shipit-engine-0.17.0 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.16.0 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.15.0 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.14.0 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.13.0 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.12.1 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.12.0 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.11.0 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.10.0 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.9.0 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.8.9 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.8.8 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.8.7 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.8.6 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.8.5 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.8.4 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.8.3 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.8.2 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.8.1 app/jobs/shipit/emit_event_job.rb
shipit-engine-0.8.0 app/jobs/shipit/emit_event_job.rb