Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Run domain setup and config setup during app create #357

Merged
merged 3 commits into from
Apr 15, 2013

Conversation

smarterclayton
Copy link
Contributor

... unless the user has already configured those, or is in non-interactive mode.

rhc app-create

will check for config, then run the non-key, non-test parts of the setup wizard (namespace, server, username, access token). If the user doesn't have a domain, we'll start the new DomainWizard to handle that step. Also, SSH keys will be run earlier in the flow (prior to DNS) so that users know to configure things properly.

… setting up the base config, domain, and keys. Changes behavior of argument parsing for app to be optional.
@smarterclayton
Copy link
Contributor Author

@fabianofranz review please. Adds support for arbitrary argument separators and optional command line params (that's what the changes in command_runner and commands.rb are)

@smarterclayton
Copy link
Contributor Author

[test]

@openshift-bot
Copy link

Origin Test Results: SUCCESS (https://originci-openshift.rhcloud.com/job/test_pull_requests/970/)

@openshift-bot
Copy link

rest_client.delete_key(name)
results { say "SSH key '#{name}' has been removed" }

success "removed"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could eventually review this "template" of message everywhere, sometimes I think we lack on having a list of "standards" for CLI messages. For example, what is our default to tell users the command:

  • succeeded (Success! || success || done || action verb in simple past)
  • failed (Error! || error || exited with status n || ZOMG etc)
  • or, in this specific case: "I will start doing something while you wait a moment... [input wait for a moment] done." (with line break, without line break, upper|lowercase, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally I've been trying to have folks apply "success ''" as the response. 'done' is the generic verb. Agree that we should be more consistent.

@fabianofranz
Copy link
Member

Looking good to [merge] but apparently needs manual merging. @smarterclayton please check.

@openshift-bot
Copy link

Evaluated for online up to 246de9a

@openshift-bot
Copy link

Evaluated for origin up to 246de9a

danmcp added a commit that referenced this pull request Apr 15, 2013
Run domain setup and config setup during app create
@danmcp danmcp merged commit 242d17e into openshift:master Apr 15, 2013
@danmcp
Copy link
Contributor

danmcp commented Apr 15, 2013

Will be in devenv_3101

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants