lib/veewee/command/virtualbox.rb in veewee-0.3.0.alpha6 vs lib/veewee/command/virtualbox.rb in veewee-0.3.0.alpha7
- old
+ new
@@ -73,11 +73,11 @@
venv=Veewee::Environment.new(options)
venv.ui=env.ui
venv.definitions.undefine(definition_name,options)
env.ui.info "Definition #{definition_name} succesfully removed" , :prefix => false
rescue Error => ex
- env.ui.error "#{ex}",:prefix => false
+ env.ui.error("#{ex}",:prefix => false)
exit -1
end
end
desc "ostypes", "List the available Operating System types"
@@ -106,11 +106,11 @@
def list
env.ui.info "The following local definitions are available:",:prefix => false
venv=Veewee::Environment.new(options)
venv.ui=env.ui
venv.definitions.each do |name,definition|
- env.ui.info "- #{name}"
+ env.ui.info "- #{name}",:prefix => false
end
end
desc "validate [NAME]", "Validates a box against vagrant compliancy rules"
method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
@@ -119,10 +119,10 @@
venv=Veewee::Environment.new(options)
venv.ui = ::Veewee::UI::Shell.new(venv, shell)
venv.providers["virtualbox"].get_box(box_name).validate_vagrant(options)
rescue Veewee::Error => ex
- venv.ui.error ex
+ venv.ui.error(ex, :prefix => false)
exit -1
end
end