Sha256: 001af2d062d9bc303007a5811afe083072653e3c7c1c15f8b867e1989c77a1b6
Contents?: true
Size: 675 Bytes
Versions: 8
Compression:
Stored size: 675 Bytes
Contents
module Vagrant module Actions module VM class Reload < Base def prepare steps = [Customize, ForwardPorts, SharedFolders, Boot] steps.unshift(Halt) if @runner.vm.running? steps << Provision if !@runner.env.config.vm.provisioner.nil? steps.each do |action_klass| @runner.add_action(action_klass) end end def after_halt # This sleep is here to allow the VM to clean itself up. There appears # nothing [obvious] in the VirtualBox API to automate this. For now, this # is an interim solution. sleep 1 end end end end end
Version data entries
8 entries across 8 versions & 2 rubygems