Module: Zapnito::Cli::Questions
Instance Method Summary collapse
Instance Method Details
#which_slug?(api_token, basepath) ⇒ Boolean
6 7 8 9 10 11 12 13 14 |
# File 'lib/zapnito/cli/questions.rb', line 6 def which_slug?(api_token, basepath) puts HighLine.new.choose do || .prompt = "Which tenant do you want to add? " available_slugs(api_token, basepath).each do |tenant_slug| .choice(tenant_slug) { tenant_slug } end end end |