Sha256: c8a6a71735714c21666957e3fa19b641bc6286a6ed34d6b06af39770e4deef42

Contents?: true

Size: 531 Bytes

Versions: 7

Compression:

Stored size: 531 Bytes

Contents

module VagrantPlugins
  module Invade
    module Validator

      class SSH

        attr_accessor :env, :ssh

        DEFAULT = {
          'forward_agent' => true
        }

        def initialize(env, ssh)
          @env = env
          @ssh = ssh
        end

        def validate
          return DEFAULT unless @ssh

          @ssh['forward_agent'] = Validator.validate_boolean(
            @ssh['forward_agent'], 'forward_agent', DEFAULT['forward_agent']
          )

          @ssh
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vagrant-invade-0.5.5 lib/vagrant-invade/validator/ssh.rb
vagrant-invade-0.5.4 lib/vagrant-invade/validator/ssh.rb
vagrant-invade-0.5.3 lib/vagrant-invade/validator/ssh.rb
vagrant-invade-0.5.2 lib/vagrant-invade/validator/ssh.rb
vagrant-invade-0.5.1 lib/vagrant-invade/validator/ssh.rb
vagrant-invade-0.5.0 lib/vagrant-invade/validator/ssh.rb
vagrant-invade-0.4.8 lib/vagrant-invade/validator/ssh.rb