Class: ShopifyCLI::Theme::DevServer::RemoteWatcher
- Inherits:
-
Object
- Object
- ShopifyCLI::Theme::DevServer::RemoteWatcher
show all
- Defined in:
- lib/shopify_cli/theme/dev_server/remote_watcher.rb,
lib/shopify_cli/theme/dev_server/remote_watcher/json_files_update_job.rb
Defined Under Namespace
Classes: JsonFilesUpdateJob
Constant Summary
collapse
- SYNC_INTERVAL =
3
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.to(theme:, syncer:) ⇒ Object
14
15
16
|
# File 'lib/shopify_cli/theme/dev_server/remote_watcher.rb', line 14
def to(theme:, syncer:)
new(theme, syncer)
end
|
Instance Method Details
#start ⇒ Object
19
20
21
|
# File 'lib/shopify_cli/theme/dev_server/remote_watcher.rb', line 19
def start
thread_pool.schedule(recurring_job)
end
|
#stop ⇒ Object
23
24
25
|
# File 'lib/shopify_cli/theme/dev_server/remote_watcher.rb', line 23
def stop
thread_pool.shutdown
end
|