Class: Vvm::CLI::Command::ConfirmProductPick
- Defined in:
- lib/vvm/cli/command/confirm_product_pick.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
by_command_name, inherited, #initialize
Constructor Details
This class inherits a constructor from Vvm::CLI::Command::Base
Instance Method Details
#call(picked_product:) ⇒ Object
9 10 11 12 13 |
# File 'lib/vvm/cli/command/confirm_product_pick.rb', line 9 def call(picked_product:) prompt.ok "You've got: #{picked_product.name}" prompt.yes?('Would you like to return to main menu?') ? env.call(:show_main_menu) : exit end |