# File lib/rhc/wizard.rb, line 509 def config_namespace(namespace) # skip if string is empty if namespace_optional? and (namespace.nil? or namespace.chomp.blank?) paragraph{ info "You may create a namespace later through 'rhc create-domain'" } return true end begin domain = rest_client.add_domain(namespace) options.namespace = namespace success "Your domain name '#{domain.id}' has been successfully created" rescue RHC::Rest::ValidationException => e error e.message || "Unknown error during namespace creation." return false end true end