Class: VagrantPlugins::VagrantHyperV::Guest::Windows

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(machine = nil) ⇒ Windows

Returns a new instance of Windows.



13
14
15
16
# File 'lib/vagrant-windows-hyperv/guest/windows.rb', line 13

def initialize(machine = nil)
  super(machine) unless machine == nil
  @machine = machine
end

Instance Attribute Details

#machinObject (readonly)

Returns the value of attribute machin.



11
12
13
# File 'lib/vagrant-windows-hyperv/guest/windows.rb', line 11

def machin
  @machin
end

Instance Method Details

#haltObject



18
19
20
# File 'lib/vagrant-windows-hyperv/guest/windows.rb', line 18

def halt
  VagrantHyperV::VagrantPlugins::Guest::Cap::Halt.halt(@machine)
end