def config_namespace_stage
paragraph do
say "Checking your namespace ... "
domains = rest_client.domains
if domains.length == 0
warn "none"
paragraph do
say "Your namespace is unique to your account and is the suffix of the " \
"public URLs we assign to your applications. You may configure your " \
"namespace here or leave it blank and use 'rhc create-domain' to " \
"create a namespace later. You will not be able to create " \
"applications without first creating a namespace."
end
ask_for_namespace
else
success domains.map(&:id).join(', ')
end
end
true
end