Method: LabClient::ClientSetup#prompt_for_url
- Defined in:
- lib/labclient/client/setup.rb
#prompt_for_url ⇒ Object
If nothing entered Prompt for Input
18 19 20 21 22 |
# File 'lib/labclient/client/setup.rb', line 18 def prompt_for_url print 'Enter GitLab URL (e.g. https://gitlab.com): ' @settings[:url] = ENV['LABCLIENT_TESTING'] ? 'testu' : $stdin.gets&.chomp raise 'LabClient Error - Missing URL!' if @settings[:url].blank? end |