Class: EnvSwitcher::MainCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- EnvSwitcher::MainCommand
- Defined in:
- lib/env_switcher/main_command.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/env_switcher/main_command.rb', line 13 def execute command = prompt.select("What do you want to do?") do || .choice "AWS", -> { EnvSwitcher::Commands::Aws } .choice "Kubernetes", -> { EnvSwitcher::Commands::Kubernetes } end choice_command(command) end |