lib/kitchen/driver/ssh_base.rb
def build_ssh_args(state)
        combined = config.to_hash.merge(state)

        opts = {}
        opts[:user_known_hosts_file] = "/dev/null"
        opts[:verify_host_key] = false
        opts[:keys_only] = true if combined[:ssh_key]
        opts[:password] = combined[:password] if combined[:password]
        opts[:forward_agent] = combined[:forward_agent] if combined.key? :forward_agent
        opts[:port] = combined[:port] if combined[:port]
        opts[:keys] = Array(combined[:ssh_key]) if combined[:ssh_key]
        opts[:logger] = logger

        [combined[:hostname], combined[:username], opts]
      end
# Builds arguments for constructing a `Kitchen::SSH` instance.
#
# @param state [Hash] state hash
# @return [Array] SSH constructor arguments
# @api private
Builds arguments for constructing a `Kitchen::SSH` instance.
Builds arguments for constructing a ` Kitchen :: SSH ` instance .
def build_ssh_args(state)
        combined = config.to_hash.merge(state)
        opts = {}
        opts[:user_known_hosts_file] = "/dev/null"
        opts[:verify_host_key] = false
        opts[:keys_only] = true if combined[:ssh_key]
        opts[:password] = combined[:password] if combined[:password]
        opts[:forward_agent] = combined[:forward_agent] if combined.key? :forward_agent
        opts[:port] = combined[:port] if combined[:port]
        opts[:keys] = Array(combined[:ssh_key]) if combined[:ssh_key]
        opts[:logger] = logger
        [combined[:hostname], combined[:username], opts]
      end
def build_ssh_args ( state ) combined = config . to_hash . merge ( state ) opts = { } opts [ :user_known_hosts_file ] = "/dev/null" opts [ :verify_host_key ] = false opts [ :keys_only ] = true if combined [ :ssh_key ] opts [ :password ] = combined [ :password ] if combined [ :password ] opts [ :forward_agent ] = combined [ :forward_agent ] if combined . key? :forward_agent opts [ :port ] = combined [ :port ] if combined [ :port ] opts [ :keys ] = Array ( combined [ :ssh_key ] ) if combined [ :ssh_key ] opts [ :logger ] = logger [ combined [ :hostname ] , combined [ :username ] , opts ] end
Builds arguments for constructing a `Kitchen::SSH` instance.
Builds arguments for constructing a ` Kitchen :: SSH ` instance .
SSH constructor arguments
SSH constructor arguments
Array
state
None
api
None