VM import now reports import progress!
This commit is contained in:
parent
00cf000189
commit
945cc6af32
|
@ -2,12 +2,19 @@ module Vagrant
|
|||
module Actions
|
||||
module VM
|
||||
class Import < Base
|
||||
include Util::ProgressMeter
|
||||
|
||||
def execute!
|
||||
@runner.invoke_around_callback(:import) do
|
||||
Busy.busy do
|
||||
logger.info "Importing base VM (#{@runner.env.box.ovf_file})..."
|
||||
# Use the first argument passed to the action
|
||||
@runner.vm = VirtualBox::VM.import(@runner.env.box.ovf_file)
|
||||
@runner.vm = VirtualBox::VM.import(@runner.env.box.ovf_file) do |progress|
|
||||
update_progress(progress, 100)
|
||||
end
|
||||
|
||||
complete_progress
|
||||
|
||||
raise ActionException.new(:virtualbox_import_failure) unless @runner.vm
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue