Sha256: 0b969b6c2319b083178690173d41e45c3233c5f3c35bf5786b0bd0f64becc1a4
Contents?: true
Size: 636 Bytes
Versions: 6
Compression:
Stored size: 636 Bytes
Contents
module Vagrant module Actions module VM class Down < Base def prepare # The true as the 2nd parameter always forces the shutdown so its # fast (since we're destroying anyways) @runner.add_action(Halt, :force => true) if @runner.vm.running? @runner.add_action(Network) @runner.add_action(Destroy) end def after_halt # This sleep is necessary to wait for the VM to clean itself up. # There appears to be nothing in the API that does this "wait" # for us. Kernel.sleep(1) end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems