lib/bolt/transport/ssh/exec_connection.rb
# This is used to verify we can connect to targets with `connected?`
This is used to verify we can connect to targets with `connected?`
This is used to verify we can connect to targets with ` connected? `
def connect
          cmd = build_ssh_command('exit')
          _, err, stat = Open3.capture3(*cmd)
          unless stat.success?
            raise Bolt::Node::ConnectError.new(
              "Failed to connect to #{@target.safe_name}: #{err}",
              'CONNECT_ERROR'
            )
          end
        end
def connect cmd = build_ssh_command ( 'exit' ) _ , err , stat = Open3 . capture3 ( * cmd ) unless stat . success? raise Bolt :: Node :: ConnectError . new ( "Failed to connect to #{@target.safe_name}: #{err}" , 'CONNECT_ERROR' ) end end
This is used to verify we can connect to targets with `connected?`
This is used to verify we can connect to targets with ` connected? `