# File lib/virt/guest.rb, line 7 def initialize options = {} @connection = Virt.connection @name = options[:name] || raise("Must provide a name") # If our domain exists, we ignore the provided options and defaults fetch_guest @memory ||= options[:memory] || default_memory_size @vcpu ||= options[:vcpu] || default_vcpu_count @arch ||= options[:arch] || default_arch @template_path = options[:template_path] || default_template_path end