Class: Vagrant::VM

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-windows/monkey_patches/vm.rb

Instance Method Summary collapse

Instance Method Details

#channelObject



7
8
9
10
11
12
13
14
# File 'lib/vagrant-windows/monkey_patches/vm.rb', line 7

def channel
  if @guest.class.eql? Vagrant::Guest::Windows
    @channel ||= Communication::WinRM.new(self)
  else
    @channel ||= Communication::SSH.new(self)
  end
  @channel 
end

#winrmObject



3
4
5
# File 'lib/vagrant-windows/monkey_patches/vm.rb', line 3

def winrm
  @winrm ||= WinRM.new(self)
end