Sha256: 69b8a78880d7432353a6e359c550757bf188a6a874635a45f12172ff0a567edd

Contents?: true

Size: 272 Bytes

Versions: 23

Compression:

Stored size: 272 Bytes

Contents

namespace :webhooks do

  desc 'Synchronise webhooks across all installed shops.'
  task sync: :environment do
    DiscoApp::Shop.installed.has_active_shopify_plan.each do |shop|
      DiscoApp::SynchroniseWebhooksJob.perform_later(shop.shopify_domain)
    end
  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
disco_app-0.6.4 lib/tasks/webhooks.rake
disco_app-0.6.5 lib/tasks/webhooks.rake
disco_app-0.6.6 lib/tasks/webhooks.rake
disco_app-0.6.7 lib/tasks/webhooks.rake
disco_app-0.6.8 lib/tasks/webhooks.rake
disco_app-0.6.9 lib/tasks/webhooks.rake
disco_app-0.7.0 lib/tasks/webhooks.rake
disco_app-0.7.1 lib/tasks/webhooks.rake
disco_app-0.7.2 lib/tasks/webhooks.rake
disco_app-0.8.0 lib/tasks/webhooks.rake
disco_app-0.8.1 lib/tasks/webhooks.rake
disco_app-0.8.2 lib/tasks/webhooks.rake
disco_app-0.8.3 lib/tasks/webhooks.rake
disco_app-0.8.4 lib/tasks/webhooks.rake
disco_app-0.8.5 lib/tasks/webhooks.rake
disco_app-0.8.6 lib/tasks/webhooks.rake
disco_app-0.8.7 lib/tasks/webhooks.rake
disco_app-0.8.8 lib/tasks/webhooks.rake
disco_app-0.8.9 lib/tasks/webhooks.rake
disco_app-0.9.0 lib/tasks/webhooks.rake