Sha256: 1a2242a706cbc5d183a4e26ffee999d70b86359940396a6b9bd9f21b47c94d8a
Contents?: true
Size: 513 Bytes
Versions: 25
Compression:
Stored size: 513 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
25 entries across 25 versions & 1 rubygems