def config_namespace_stage
paragraph do
say "Checking for a domain ... "
domains = rest_client.domains
if domains.length == 0
warn "none"
paragraph do
say [
"Applications are grouped into domains - each domain has a unique name (called a namespace) that becomes part of your public application URL.",
("You may create your first domain here or leave it blank and use 'rhc create-domain' later." if namespace_optional?),
"You will not be able to create an application without completing this step.",
].compact.join(' ')
end
ask_for_namespace
else
success domains.map(&:name).join(', ')
end
end
true
end