def update(namespace)
domain = rest_client.domains
raise RHC::DomainNotFoundException.new("No domains are registered to the user #{config.username}. Please use 'rhc domain create' to create one.") if domain.empty?
paragraph { say "Updating domain '#{domain[0].id}' to namespace '#{namespace}'" }
domain[0].update(namespace)
results do
say "Success!"
say "You can use 'rhc domain show' to view any url changes. Be sure to update any links including the url in your local git config: <local_git_repo>/.git/config"
end
0
end