Sha256: 5571b516960652be1778f2a23e3dee7d92cbf123a24cb508c2a67a0dee84ea3e
Contents?: true
Size: 834 Bytes
Versions: 4
Compression:
Stored size: 834 Bytes
Contents
module Vagrant module Config class SSHConfig < Base 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 validate(env, errors) [:username, :host, :max_tries, :timeout].each do |field| errors.add(I18n.t("vagrant.config.common.error_empty", :field => field)) if !instance_variable_get("@#{field}".to_sym) end if private_key_path && !File.file?(private_key_path) errors.add(I18n.t("vagrant.config.ssh.private_key_missing", :path => private_key_path)) end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
vagrantup-1.0.1 | lib/vagrant/config/ssh.rb |
vagrantup-1.0.0 | lib/vagrant/config/ssh.rb |
vagrant-1.0.1 | lib/vagrant/config/ssh.rb |
vagrant-1.0.0 | lib/vagrant/config/ssh.rb |