Sha256: 68d42b8f3b1651a87f87498bb9e6b1bd51c1b6a6deb808f031d4fb66d3b2a6f6

Contents?: true

Size: 812 Bytes

Versions: 1

Compression:

Stored size: 812 Bytes

Contents

require "timeout"
require "log4r"

require "vagrant/../../plugins/communicators/winrm/helper"
require_relative "shell"
require "vagrant/../../plugins/communicators/winrm/communicator"

module VagrantPlugins
  module CommunicatorWinRM
    class WinrmSCommunicator < Communicator
      def initialize(machine)
        super(machine)
      end

      protected

      def create_shell
        winrm_info = Helper.winrm_info(@machine)

        WinRMSShell.new(
          winrm_info[:host],
          @machine.config.winrm.username,
          @machine.config.winrm.password,
          transport: @machine.config.winrm.transport,
          port: @machine.config.winrm.port,
          timeout_in_seconds: @machine.config.winrm.timeout,
          max_tries: @machine.config.winrm.max_tries)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-winrm-s-0.0.1 lib/vagrant-winrm-s/communicator.rb