Class: ShopifyCLI::Theme::Syncer::Uploader::Forms::SelectUpdateStrategy

Inherits:
BaseStrategyForm show all
Defined in:
lib/shopify_cli/theme/syncer/uploader/forms/select_update_strategy.rb

Instance Attribute Summary

Attributes inherited from BaseStrategyForm

#strategy

Attributes inherited from Form

#ctx, #xargs

Instance Method Summary collapse

Methods inherited from BaseStrategyForm

#ask

Methods inherited from Form

ask, flag_arguments, #initialize, positional_arguments

Constructor Details

This class inherits a constructor from ShopifyCLI::Form

Instance Method Details

#prefixObject



22
23
24
# File 'lib/shopify_cli/theme/syncer/uploader/forms/select_update_strategy.rb', line 22

def prefix
  "theme.serve.syncer.forms.#{exists_remotely ? "update_strategy" : "update_remote_deleted_strategy"}"
end

#strategiesObject



13
14
15
16
17
18
19
20
# File 'lib/shopify_cli/theme/syncer/uploader/forms/select_update_strategy.rb', line 13

def strategies
  %i[
    keep_remote
    keep_local
    union_merge
    exit
  ]
end