Class: ShopifyCLI::Theme::DevServer::RemoteWatcher::JsonFilesUpdateJob

Inherits:
ShopifyCLI::ThreadPool::Job show all
Defined in:
lib/shopify_cli/theme/dev_server/remote_watcher/json_files_update_job.rb

Instance Attribute Summary

Attributes inherited from ShopifyCLI::ThreadPool::Job

#error, #interval

Instance Method Summary collapse

Methods inherited from ShopifyCLI::ThreadPool::Job

#call, #error?, #recurring?, #success?

Constructor Details

#initialize(theme, syncer, interval) ⇒ JsonFilesUpdateJob

Returns a new instance of JsonFilesUpdateJob.



10
11
12
13
14
15
# File 'lib/shopify_cli/theme/dev_server/remote_watcher/json_files_update_job.rb', line 10

def initialize(theme, syncer, interval)
  super(interval)

  @theme = theme
  @syncer = syncer
end

Instance Method Details

#perform!Object



17
18
19
20
# File 'lib/shopify_cli/theme/dev_server/remote_watcher/json_files_update_job.rb', line 17

def perform!
  @syncer.fetch_checksums!
  @syncer.enqueue_get(json_files)
end