# File lib/rhc/commands/domain.rb, line 60
    def rename(old_namespace, new_namespace)
      domain = rest_client.find_domain(old_namespace)

      say "Renaming domain '#{domain.name}' to '#{new_namespace}' ... "
      domain.rename(new_namespace)
      success "done"

      info "Applications created in this domain will use the new name in their URL."

      0
    end