Class: VagrantPlugins::VagrantHyperV::Guest::Windows
- Inherits:
-
Object
- Object
- VagrantPlugins::VagrantHyperV::Guest::Windows
- Defined in:
- lib/vagrant-windows-hyperv/guest/windows.rb
Instance Attribute Summary collapse
-
#machin ⇒ Object
readonly
Returns the value of attribute machin.
Instance Method Summary collapse
- #halt ⇒ Object
-
#initialize(machine = nil) ⇒ Windows
constructor
A new instance of Windows.
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
#machin ⇒ Object (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
#halt ⇒ Object
18 19 20 |
# File 'lib/vagrant-windows-hyperv/guest/windows.rb', line 18 def halt VagrantHyperV::VagrantPlugins::Guest::Cap::Halt.halt(@machine) end |