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

- old
+ new

@@ -2,11 +2,11 @@ module Provider module Virtualbox module BoxCommand def forwarding(name) - command="#{@vboxcmd} showvminfo --details --machinereadable '#{self.name}'" + command="#{@vboxcmd} showvminfo --details --machinereadable \"#{self.name}\"" shell_results=shell_exec("#{command}") rules=shell_results.stdout.split(/\n/).grep(/^Forward/) result=nil rules.each do |rule| #Forwarding(0) @@ -26,10 +26,10 @@ return result end def delete_forwarding(name) forward=self.forwarding(name) - command="#{@vboxcmd} controlvm '#{self.name}' natpf#{self.natinterface} delete #{name}" + command="#{@vboxcmd} controlvm \"#{self.name}\" natpf#{self.natinterface} delete #{name}" shell_results=shell_exec("#{command}") end end end