Sha256: d1cf8f017b87087981df6bb1d5d983df3c3883c6b324772d5937e6b0c886f0c8

Contents?: true

Size: 1.68 KB

Versions: 13

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 :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
        @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.max_tries        = @max_tries if @max_tries != UNSET_VALUE
        new.ssh.timeout          = @timeout if @timeout != 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.shell            = @shell if @shell != UNSET_VALUE
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 5 rubygems

Version Path
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/kernel_v1/config/ssh.rb
tnargav-1.2.3 plugins/kernel_v1/config/ssh.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/kernel_v1/config/ssh.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/plugins/kernel_v1/config/ssh.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/plugins/kernel_v1/config/ssh.rb
tnargav-1.2.2 plugins/kernel_v1/config/ssh.rb
vagrantup-1.1.3 plugins/kernel_v1/config/ssh.rb
vagrantup-1.1.2 plugins/kernel_v1/config/ssh.rb
vagrantup-1.1.1 plugins/kernel_v1/config/ssh.rb
vagrantup-1.1.0 plugins/kernel_v1/config/ssh.rb
vagrantup-1.1.4 plugins/kernel_v1/config/ssh.rb
vagrant-actionio-0.0.9 vendor/bundle/bundler/gems/vagrant-c74251a1d9c0/plugins/kernel_v1/config/ssh.rb
vagrant-lxc-0.0.1 vendor/vagrant/plugins/kernel_v1/config/ssh.rb