Sha256: 3a8dee69a866e42fc22cb6077fe60094e99c933179aa0fdbb77127a693598e35

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

module InventorySync
  module Async
    class InventoryScheduledSync < ::Actions::EntryAction
      include ::Actions::RecurringAction

      def plan
        Organization.unscoped.each do |org|
          plan_org_sync(org)
        end
      end

      def plan_org_sync(org)
        plan_action InventoryFullSync, org
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_rh_cloud-4.0.21.1 lib/inventory_sync/async/inventory_scheduled_sync.rb
foreman_rh_cloud-3.0.21.1 lib/inventory_sync/async/inventory_scheduled_sync.rb
foreman_rh_cloud-3.0.21 lib/inventory_sync/async/inventory_scheduled_sync.rb