Class: ShopifyCLI::Theme::DevServer::ReloadMode

Inherits:
Object
  • Object
show all
Defined in:
lib/shopify_cli/theme/dev_server/reload_mode.rb

Constant Summary collapse

MODES =
[:"hot-reload", :"full-page", :off]

Class Method Summary collapse

Class Method Details

.defaultObject



10
11
12
# File 'lib/shopify_cli/theme/dev_server/reload_mode.rb', line 10

def default
  :"hot-reload"
end

.get!(mode) ⇒ Object



14
15
16
# File 'lib/shopify_cli/theme/dev_server/reload_mode.rb', line 14

def get!(mode)
  MODES.find { |m| m == mode.to_sym } || raise_error(mode)
end