Class: ShopifyCLI::Tasks::ConfirmStore
- Inherits:
-
ShopifyCLI::Task
- Object
- ShopifyCLI::Task
- ShopifyCLI::Tasks::ConfirmStore
- Defined in:
- lib/shopify_cli/tasks/confirm_store.rb
Instance Method Summary collapse
Instance Method Details
#call(ctx) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/shopify_cli/tasks/confirm_store.rb', line 6 def call(ctx) @ctx = ctx store = ShopifyCLI::AdminAPI.get_shop_or_abort(ctx) if CLI::UI::Prompt.confirm(ctx.("core.tasks.confirm_store.prompt", store), default: false) ctx.puts(ctx.("core.tasks.confirm_store.confirmation", store)) else ctx.puts(ctx.("core.tasks.confirm_store.cancelling")) raise AbortSilent end end |