Refactor vm_helper XML parsing code
There’s a lot of code duplication, and awkwardness going on there. Some helper(s) in the spirit of
features/step_definitions/tor.rb would be nice.
#2 Updated by anonym 2016-10-27 14:03:58
what about something like:
update_domain_xml do |doman_xml| domain_xml.do_something_to_it end
and when the block finishes it tells libvirt to update the domain with the resulting XML. We could have a
domain_xml method would just returns the REXML object — I don’t really see the point of a context manager with a block.
Also, in general I think we should switch to using Xpath instead of