lib/vagrant-windows/guest/windows.rb in vagrant-windows-1.3.0.pre.2 vs lib/vagrant-windows/guest/windows.rb in vagrant-windows-1.3.0.pre.3

- old
+ new

@@ -10,15 +10,17 @@ class Windows < Vagrant.plugin("2", :guest) # Vagrant 1.1.x compatibility methods # Implement the 1.1.x methods and call through to the new 1.2.x capabilities + attr_reader :windows_machine attr_reader :machine def initialize(machine = nil) super(machine) unless machine == nil @machine = machine + @windows_machine = ::VagrantWindows::WindowsMachine.new(machine) end def change_host_name(name) VagrantWindows::Guest::Cap::ChangeHostName.change_host_name(@machine, name) end @@ -30,10 +32,10 @@ def halt VagrantWindows::Guest::Cap::Halt.halt(@machine) end def mount_shared_folder(name, guestpath, options) - if VagrantWindows::Helper.is_vmware(@machine) then + if @windows_machine.is_vmware?() then VagrantWindows::Guest::Cap::MountSharedFolder.mount_vmware_shared_folder( @machine, name, guestpath, options) else VagrantWindows::Guest::Cap::MountSharedFolder.mount_virtualbox_shared_folder( @machine, name, guestpath, options)