Sha256: 19d95e5b38d28a13fc3813d1505abe00da1168942d69c33f3f98a0679442a852

Contents?: true

Size: 706 Bytes

Versions: 6

Compression:

Stored size: 706 Bytes

Contents

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) do |progress|
                update_progress(progress.percent, 100, false)
              end

              complete_progress

              raise ActionException.new(:virtualbox_import_failure) unless @runner.vm
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
vagrantup-0.3.4 lib/vagrant/actions/vm/import.rb
vagrantup-0.3.3 lib/vagrant/actions/vm/import.rb
vagrantup-0.3.2 lib/vagrant/actions/vm/import.rb
vagrant-0.3.4 lib/vagrant/actions/vm/import.rb
vagrant-0.3.3 lib/vagrant/actions/vm/import.rb
vagrant-0.3.2 lib/vagrant/actions/vm/import.rb