Method: App42::Command::User#get_api_key
- Defined in:
- lib/app42/command/user.rb
#get_api_key(prompt = Paint["Enter API Key:", :bright]) ⇒ Object
collect api key from client
110 111 112 113 114 |
# File 'lib/app42/command/user.rb', line 110 def get_api_key(prompt = Paint["Enter API Key:", :bright]) api_key = [:api_key] if [:api_key] api_key = ask(prompt) {|q| q.echo = true} if api_key.nil? return api_key.strip end |