Sha256: 86ba76fd23d590a437f194a0f08980dc4f4270e8b724807b3e921883613c9b78

Contents?: true

Size: 1.68 KB

Versions: 58

Compression:

Stored size: 1.68 KB

Contents

require "vagrant"

module VagrantPlugins
  module Kernel_V1
    class SSHConfig < Vagrant.plugin("1", :config)
      attr_accessor :username
      attr_accessor :password
      attr_accessor :host
      attr_accessor :port
      attr_accessor :guest_port
      attr_accessor :max_tries
      attr_accessor :timeout
      attr_accessor :private_key_path
      attr_accessor :forward_agent
      attr_accessor :forward_x11
      attr_accessor :forward_env
      attr_accessor :shell

      def initialize
        @username         = UNSET_VALUE
        @password         = UNSET_VALUE
        @host             = UNSET_VALUE
        @port             = UNSET_VALUE
        @guest_port       = UNSET_VALUE
        @max_tries        = UNSET_VALUE
        @timeout          = UNSET_VALUE
        @private_key_path = UNSET_VALUE
        @forward_agent    = UNSET_VALUE
        @forward_x11      = UNSET_VALUE
        @forward_env      = UNSET_VALUE
        @shell            = UNSET_VALUE
      end

      def upgrade(new)
        new.ssh.username         = @username if @username != UNSET_VALUE
        new.ssh.host             = @host if @host != UNSET_VALUE
        new.ssh.port             = @port if @port != UNSET_VALUE
        new.ssh.guest_port       = @guest_port if @guest_port != UNSET_VALUE
        new.ssh.private_key_path = @private_key_path if @private_key_path != UNSET_VALUE
        new.ssh.forward_agent    = @forward_agent if @forward_agent != UNSET_VALUE
        new.ssh.forward_x11      = @forward_x11 if @forward_x11 != UNSET_VALUE
        new.ssh.forward_env      = @forward_env if @forward_env != UNSET_VALUE
        new.ssh.shell            = @shell if @shell != UNSET_VALUE
      end
    end
  end
end

Version data entries

58 entries across 54 versions & 6 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/kernel_v1/config/ssh.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.3.3.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.3.2.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.19.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.18.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.16.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.14.0 plugins/kernel_v1/config/ssh.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.10.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.9.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.8.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.7.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.6.2 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.6.1 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.6.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.5.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.4.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.3.0 plugins/kernel_v1/config/ssh.rb
vagrant-unbundled-2.2.2.0 plugins/kernel_v1/config/ssh.rb