Red Hat Bugzilla – Bug 822935
Wizard is not reentrant
Last modified: 2015-05-14 21:54:14 EDT
The wizard cannot be setup a second time, which means any error during the setup step requires the user to manually delete their conf file.
We should add a command like 'rhc setup' that invokes the wizard and allows the user to reexecute each step (with the current settings as defaults). Right now there is no do over - if someone puts the wrong stuff in, that's it
"rhc setup" should be one of the new Commander commands and should be where the wizard code is invoked from (not sure if we would need wizard.rb in that case, unless you wanted to create some of that as helper steps that further break down the flow).
rhc setup was added on Friday, I need to add help documentation. Will put on QA when I have done that and pushed.
It is fixed on devenv_1802, rhc-0.93.11
[root@localhost home]# rhc setup
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.
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 - db:6c:7c:d9:72:79:81:ef:9a:95:83:40:b0:d7:49:c5
Provide a name for this key: |72ee3942|
Sending new key 72ee3942 .. Success
We will now check to see if you have the necessary client tools installed.
Checking for git ... found
Checking for your namespace ... found namespace:
Checking for applications ... found
* jboss0 - http://jboss0-yquan.rhcloud.com/
* py0 - http://py0-yquan.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 setup)