Sha256: 943d043384bee78ee73a9b0308c58c76a3dc8acc479f6d87fafca0d43c25840f

Contents?: true

Size: 883 Bytes

Versions: 12

Compression:

Stored size: 883 Bytes

Contents

require File.expand_path("../../../kernel_v2/config/ssh", __FILE__)

module VagrantPlugins
  module CommunicatorWinSSH
    class Config < VagrantPlugins::Kernel_V2::SSHConfig

      attr_accessor :upload_directory

      def initialize
        super
        @upload_directory = UNSET_VALUE
      end

      def finalize!
        @shell = "powershell" if @shell == UNSET_VALUE
        @sudo_command = "%c" if @sudo_command == UNSET_VALUE
        @upload_directory = "C:/Windows/Temp" if @upload_directory == UNSET_VALUE
        if @export_command_template == UNSET_VALUE
          @export_command_template = '$env:%ENV_KEY%="%ENV_VALUE%"'
        end
        super
      end

      def to_s
        "WINSSH"
      end

      # Remove configuration options from regular SSH that are
      # not used within this communicator
      undef :forward_x11
      undef :pty
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/communicators/winssh/config.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/communicators/winssh/config.rb
vagrant-unbundled-2.3.3.0 plugins/communicators/winssh/config.rb
vagrant-unbundled-2.3.2.0 plugins/communicators/winssh/config.rb
vagrant-unbundled-2.2.19.0 plugins/communicators/winssh/config.rb
vagrant-unbundled-2.2.18.0 plugins/communicators/winssh/config.rb
vagrant-unbundled-2.2.16.0 plugins/communicators/winssh/config.rb
vagrant-unbundled-2.2.14.0 plugins/communicators/winssh/config.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/communicators/winssh/config.rb
vagrant-unbundled-2.2.10.0 plugins/communicators/winssh/config.rb
vagrant-unbundled-2.2.9.0 plugins/communicators/winssh/config.rb
vagrant-unbundled-2.2.8.0 plugins/communicators/winssh/config.rb