lib/veewee/provider/virtualbox/box/up.rb in veewee-0.3.0.alpha8 vs lib/veewee/provider/virtualbox/box/up.rb in veewee-0.3.0.alpha9

- old
+ new

@@ -4,12 +4,11 @@ module BoxCommand def up(options={}) unless self.exists? - ui.error "Error:: You tried to up a non-existing box '#{name}'" - exit -1 + raise Veewee::Error, "Error:: You tried to up a non-existing box '#{name}'" end gui_enabled=options['nogui']==true ? false : true raise Veewee::Error,"Box is already running" if self.running? @@ -28,10 +27,10 @@ end else self.add_ssh_nat_mapping end - self.suppress_messages + 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}\""