Sha256: 6bb379ea2128e59a504c9a26c665e2531f9d6f8f209930379bb947055697fda9

Contents?: true

Size: 698 Bytes

Versions: 4

Compression:

Stored size: 698 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, 100, false)
              end

              complete_progress

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
vagrantup-0.3.1 lib/vagrant/actions/vm/import.rb
vagrantup-0.3.0 lib/vagrant/actions/vm/import.rb
vagrant-0.3.1 lib/vagrant/actions/vm/import.rb
vagrant-0.3.0 lib/vagrant/actions/vm/import.rb