lib/vagrant-invade/validator/ssh.rb in vagrant-invade-0.4.7 vs lib/vagrant-invade/validator/ssh.rb in vagrant-invade-0.4.8

- old
+ new

@@ -5,29 +5,22 @@ class SSH attr_accessor :env, :ssh DEFAULT = { - 'enabled' => nil, - 'path' => '~/.ssh/' + 'forward_agent' => true } def initialize(env, ssh) @env = env @ssh = ssh end def validate return DEFAULT unless @ssh - # ENABLED - @ssh['enabled'] = Validator.validate_boolean( - @ssh['enabled'], 'enabled', DEFAULT['enabled'] - ) - - # PATH TO HOST SSH FOLDER - @ssh['path'] = Validator.validate_string( - @ssh['path'], 'path', DEFAULT['path'] + @ssh['forward_agent'] = Validator.validate_boolean( + @ssh['forward_agent'], 'forward_agent', DEFAULT['forward_agent'] ) @ssh end