Class: VagrantPlugins::VagrantHyperV::Provider

Inherits:
HyperV::Provider
  • Object
show all
Defined in:
lib/vagrant-windows-hyperv/provider.rb

Instance Method Summary collapse

Instance Method Details

#action(name) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/vagrant-windows-hyperv/provider.rb', line 16

def action(name)
  # Attempt to get the action method from the Action class if it
  # exists, otherwise return nil to show that we don't support the
  # given action.
  action_method = "action_#{name}"
  if Action.respond_to?(action_method)
    return Action.send(action_method)
  else
    super
  end
end

#machine_id_changedObject



12
13
14
# File 'lib/vagrant-windows-hyperv/provider.rb', line 12

def machine_id_changed
  @driver = Driver.new(@machine)
end