14 lines
351 B
Ruby
14 lines
351 B
Ruby
module Vagrant
|
|
module Actions
|
|
class Import < Base
|
|
def execute!
|
|
@vm.invoke_callback(:before_import)
|
|
|
|
logger.info "Importing base VM (#{Vagrant.config[:vm][:base]})..."
|
|
@vm.vm = VirtualBox::VM.import(File.expand_path(Vagrant.config[:vm][:base]))
|
|
|
|
@vm.invoke_callback(:after_import)
|
|
end
|
|
end
|
|
end
|
|
end |