Sha256: b98c24d96fb3438e219a43c5c28e29dd04089115219ef105ce76e826c9cdbd98
Contents?: true
Size: 746 Bytes
Versions: 3
Compression:
Stored size: 746 Bytes
Contents
module Vagrant class Machine ssh_communicate = instance_method(:communicate) # This patch is needed until Vagrant supports a configurable communication channel define_method(:communicate) do unless @communicator if @config.vm.guest.eql? :windows @logger.info("guest is #{@config.vm.guest}, using WinRM for communication channel") @communicator = ::VagrantWindows::Communication::WinRMCommunicator.new(self) else @logger.info("guest is #{@config.vm.guest}, using SSH for communication channel") @communicator = ssh_communicate.bind(self).() end end @communicator end def winrm @winrm ||= WinRM.new(self) end end end
Version data entries
3 entries across 3 versions & 1 rubygems