Class: Vagrant::Actions::VM::Reload

Inherits:
Base
  • Object
show all
Defined in:
lib/vagrant/actions/vm/reload.rb

Instance Attribute Summary

Attributes inherited from Base

#runner

Instance Method Summary collapse

Methods inherited from Base

#cleanup, #execute!, #follows, #initialize, #precedes, #rescue

Methods included from Util

#error_and_exit, included, #logger, #wrap_output

Constructor Details

This class inherits a constructor from Vagrant::Actions::Base

Instance Method Details

#prepareObject



5
6
7
8
9
10
11
12
13
# File 'lib/vagrant/actions/vm/reload.rb', line 5

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