Class: Theme::Forms::ConfirmStore

Inherits:
ShopifyCLI::Form show all
Defined in:
lib/project_types/theme/forms/confirm_store.rb

Instance Attribute Summary

Attributes inherited from ShopifyCLI::Form

#ctx, #xargs

Instance Method Summary collapse

Methods inherited from ShopifyCLI::Form

ask, flag_arguments, #initialize, positional_arguments

Constructor Details

This class inherits a constructor from ShopifyCLI::Form

Instance Method Details

#askObject



6
7
8
# File 'lib/project_types/theme/forms/confirm_store.rb', line 6

def ask
  @confirmed = force || CLI::UI::Prompt.confirm(title, default: false)
end

#confirmed?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/project_types/theme/forms/confirm_store.rb', line 10

def confirmed?
  @confirmed
end