lib/veewee/provider/virtualbox/box/destroy.rb in veewee-0.3.0.alpha5 vs lib/veewee/provider/virtualbox/box/destroy.rb in veewee-0.3.0.alpha6

- old
+ new

@@ -17,11 +17,11 @@ self.poweroff # Wait for it to happen sleep 2 end - command="#{@vboxcmd} unregistervm '#{name}' --delete" + command="#{@vboxcmd} unregistervm \"#{name}\" --delete" env.ui.info command env.ui.info "Deleting vm #{name}" #Exec and system stop the execution here shell_exec("#{command}",{:mute => true}) @@ -37,12 +37,12 @@ hdds.each do |hdd_text| location=hdd_text.split(/\n/).grep(/^Location/).first.split(':')[1].strip if location.match(/#{pattern}/) if File.exists?(location) - command="#{@vboxcmd} closemedium disk '#{location}' --delete" + command="#{@vboxcmd} closemedium disk \"#{location}\" --delete" else - command="#{@vboxcmd} closemedium disk '#{location}'" + command="#{@vboxcmd} closemedium disk \"#{location}\"" end env.ui.info "Deleting disk #{location}" env.ui.info "#{command}"