Red Hat Bugzilla – Bug 822940
Setup wizard should have better text and wrap more cleanly
Last modified: 2015-05-14 21:54:15 EDT
In my TTY shell the text of the interactive wizard is wrapped poorly. Let highline do the wrapping and formatting - all of the <EOF steps should either be chomped or formatted better.
The "Starting interactive setup" title should include "OpenShift client tools" or the same name as is defined in rhc/cli for the program name.
We are "OpenShift", not "OpenShift Express"
The Server URL should be formatted better. Recommend you say "To connect to https://openshift.redhat.com enter your OpenShift login (email or Red Hat login id)" (not username, should be same wording as used on our login page). Username should be on a separate line. "Login: "
Each step should be separated by an empty line (Entering credentials, key uploads, etc). First line should be what we're doing, other lines can be status. Eventually we want to have better formatting here.
"Your public ssh key needs to be uloaded to the server. Would you like us to upload it for you? (yes/no) yes
Last step, we need to upload your public key to remote servers"
The "Last step" makes no sense here.
"Name your key" is not enough info for the user. "Provide a name for this key". We should provide a default that is the current machine name + current user name (with any disallowed characters removed).
Need more success message at the end. We should check whether the user has a domain and if they don't, prompt them to create one. If the user has a domain, print it out. If the user has no apps, print out some text about creating apps. If they have apps, list them. Don't display the help - instead show "For more information about the commands provided by the client tools, run 'rhc --help'"
All issues fixed
[root@localhost ~]# rhc domain show
Starting Interactive Setup for OpenShift's command line interface
It looks like you've not used OpenShift on this machine before. We'll help get you setup with just a couple of questions. You can skip this in the future by copying your config's around:
To connect to openshift.redhat.com enter your OpenShift login (email or Red Hat login id): firstname.lastname@example.org
Created local config file: /root/.openshift/express.conf
express.conf contains user configuration and can be transferred across clients.
No SSH Key has been found. We're generating one for you.
Your public ssh key needs to be uploaded to the server. Would you like us to upload it for you? (yes/no) yes
We need to upload your public key to remote servers so it can be used. First you need to name it. For example "liliWork" or "laptop". You can overwrite an existing key by naming it or pick a new name.
default - d9:37:07:04:17:18:19:54:a5:ab:d1:91:9d:37:7b:1f
key1 - 99:96:e3:46:c0:6d:30:55:5b:9a:10:18:2b:1f:ad:02
2abeceaf - 2a:be:ce:af:c5:8b:ab:cc:ed:4b:c1:f3:b7:41:6b:aa
fa9ad06f - fa:9a:d0:6f:af:43:7f:38:de:7e:fd:dc:b1:f4:b7:50
Provide a name for this key: |8a020d1a|
Sending new key 8a020d1a .. Success
We will now check to see if you have the necessary client tools installed.
Checking for git ... needs to be installed
Would you like to install git with the system installer? (yes/no) yes
You may safely continue while the installer is running or you can wait until it has finished. Press any key to continue:
Checking for your namespace ... found namespace:
Checking for applications ... found
* hellorony - http://hellorony-helloeveryboday.rhcloud.com/
* qjenkins - http://qjenkins-helloeveryboday.rhcloud.com/
* ronygong85 - http://ronygong85-helloeveryboday.rhcloud.com/
Thank you for setting up your system. You can rerun this at any time by calling 'rhc setup'. We will now execute your original command (rhc domain show)
Git URL: ssh://email@example.com/~/git/qjenkins.git/
Public URL: http://qjenkins-helloeveryboday.rhcloud.com/
Git URL: ssh://firstname.lastname@example.org/~/git/hellorony.git/
Public URL: http://hellorony-helloeveryboday.rhcloud.com/
Git URL: ssh://email@example.com/~/git/ronygong85.git/
Public URL: http://ronygong85-helloeveryboday.rhcloud.com/
verified on rhc-0.93.11-1.el6_2.noarch