Sha256: c38fbf0e847d78faeb948457cbc2ad0450a54e17d19af4b4cd56625744e77ec5

Contents?: true

Size: 213 Bytes

Versions: 10

Compression:

Stored size: 213 Bytes

Contents

module Shipit
  class DeliverHookJob < BackgroundJob
    queue_as :hooks

    def perform(delivery)
      delivery = Hook::DeliverySpec.new(delivery) if delivery.is_a?(Hash)
      delivery.send!
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 app/jobs/shipit/deliver_hook_job.rb
shipit-engine-0.30.0 app/jobs/shipit/deliver_hook_job.rb
shipit-engine-0.29.0 app/jobs/shipit/deliver_hook_job.rb
shipit-engine-0.28.1 app/jobs/shipit/deliver_hook_job.rb
shipit-engine-0.28.0 app/jobs/shipit/deliver_hook_job.rb
shipit-engine-0.27.1 app/jobs/shipit/deliver_hook_job.rb
shipit-engine-0.27.0 app/jobs/shipit/deliver_hook_job.rb
shipit-engine-0.26.0 app/jobs/shipit/deliver_hook_job.rb
shipit-engine-0.25.1 app/jobs/shipit/deliver_hook_job.rb
shipit-engine-0.25.0 app/jobs/shipit/deliver_hook_job.rb