Sha256: 9b35556d95440c3eb268e9dd625510738a45a872d1274c7511af9b99998e5dcb
Contents?: true
Size: 645 Bytes
Versions: 14
Compression:
Stored size: 645 Bytes
Contents
module InventorySync module Async class InventoryScheduledSync < ::Actions::EntryAction include ::Actions::RecurringAction def plan unless Setting[:allow_auto_inventory_upload] logger.debug( 'The scheduled process is disabled due to the "allow_auto_inventory_upload" setting being set to false.' ) return end Organization.unscoped.each do |org| plan_org_sync(org) end end def plan_org_sync(org) plan_action InventoryFullSync, org end def logger action_logger end end end end
Version data entries
14 entries across 14 versions & 1 rubygems