Sha256: 60236c91d87eb2a7d152c5b6c35bb1335fe0b31036e07f47753f47a0eb0597e5
Contents?: true
Size: 512 Bytes
Versions: 11
Compression:
Stored size: 512 Bytes
Contents
# frozen_string_literal: true namespace :shopify do desc "Rotate shopify tokens for all active shops" task :rotate_shopify_tokens, [:refresh_token] => :environment do |_t, args| all_active_shops.find_each do |shop| Shopify::RotateShopifyTokenJob.perform_later( shop_domain: shop.shopify_domain, refresh_token: args[:refresh_token] ) end end # Its implementation will depend on the app configuration. Change accordingly. def all_active_shops Shop.all end end
Version data entries
11 entries across 11 versions & 1 rubygems