Class: EnvSwitcher::MainCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/env_switcher/main_command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



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 |menu|
    menu.choice "AWS", -> { EnvSwitcher::Commands::Aws }
    menu.choice "Kubernetes", -> { EnvSwitcher::Commands::Kubernetes }
  end
  choice_command(command)
end