Sha256: f8589dacbd56f72bb3fad24610b01492cad3020c091f6695e1dac0f95039ba8d

Contents?: true

Size: 798 Bytes

Versions: 5

Compression:

Stored size: 798 Bytes

Contents

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

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

      def finalize!
        @shell = "cmd" if @shell == UNSET_VALUE
        @sudo_command = "%c" if @sudo_command == UNSET_VALUE
        if @export_command_template == UNSET_VALUE
          if @shell == "cmd"
            @export_command_template = 'set %ENV_KEY%="%ENV_VALUE%"'
          else
            @export_command_template = '$env:%ENV_KEY%="%ENV_VALUE%"'
          end
        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

5 entries across 5 versions & 2 rubygems

Version Path
vagrant-aws-mkubenka-0.7.2.pre.14 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/communicators/winssh/config.rb
vagrant-aws-mkubenka-0.7.2.pre.11 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/communicators/winssh/config.rb
vagrant-aws-mkubenka-0.7.2.pre.10 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/communicators/winssh/config.rb
vagrant-aws-mkubenka-0.7.2.pre.9 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/communicators/winssh/config.rb
vagrant-unbundled-1.9.5.1 plugins/communicators/winssh/config.rb