Class: ShopifyCLI::Theme::DevServer::RemoteWatcher::JsonFilesUpdateJob
- Inherits:
-
ShopifyCLI::ThreadPool::Job
- Object
- ShopifyCLI::ThreadPool::Job
- ShopifyCLI::Theme::DevServer::RemoteWatcher::JsonFilesUpdateJob
- Defined in:
- lib/shopify_cli/theme/dev_server/remote_watcher/json_files_update_job.rb
Instance Attribute Summary
Attributes inherited from ShopifyCLI::ThreadPool::Job
Instance Method Summary collapse
-
#initialize(theme, syncer, interval) ⇒ JsonFilesUpdateJob
constructor
A new instance of JsonFilesUpdateJob.
- #perform! ⇒ Object
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 |