lib/veewee/provider/virtualbox/box/up.rb in veewee-0.3.0.alpha5 vs lib/veewee/provider/virtualbox/box/up.rb in veewee-0.3.0.alpha6
- old
+ new
@@ -8,11 +8,11 @@
unless self.exists?
env.ui.error "Error:: You tried to up a non-existing box '#{name}'"
exit -1
end
- gui_enabled=options[:nogui]==true ? false : true
+ gui_enabled=options['nogui']==true ? false : true
raise Veewee::Error,"Box is already running" if self.running?
# Before we start,correct the ssh port if needed
forward=self.forwarding("guestssh")
@@ -33,12 +33,12 @@
self.suppress_messages
# Once assembled we start the machine
env.logger.info "Started the VM with GUI Enabled? #{gui_enabled}"
- command="#{@vboxcmd} startvm --type gui '#{name}'"
+ command="#{@vboxcmd} startvm --type gui \"#{name}\""
unless (gui_enabled)
- command="#{@vboxcmd} startvm --type headless '#{name}'"
+ command="#{@vboxcmd} startvm --type headless \"#{name}\""
end
shell_results=shell_exec("#{command}",{:mute => true})
end
end