Sha256: b0389721d72181a6d0ffd65a16ee80db53e9c7d492c9226838e8979f23d2bbf0
Contents?: true
Size: 757 Bytes
Versions: 1
Compression:
Stored size: 757 Bytes
Contents
# frozen_string_literal: true require "shopify_cli/thread_pool/job" module ShopifyCLI module Theme module DevServer class RemoteWatcher class JsonFilesUpdateJob < ShopifyCLI::ThreadPool::Job def initialize(theme, syncer, interval) super(interval) @theme = theme @syncer = syncer end def perform! @syncer.fetch_checksums! @syncer.enqueue_get(json_files) end private def json_files @theme .json_files .reject { |file| @syncer.pending_updates.include?(file) } .reject { |file| @syncer.broken_file?(file) } end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopify-cli-2.15.2 | lib/shopify_cli/theme/dev_server/remote_watcher/json_files_update_job.rb |