Method: Pssh::Pty#store

Defined in:
lib/pssh/pty.rb

#store(data) ⇒ Object

Internal: Store data to the stream so that when a new connection is started we can send all that data and give them the visual.

Returns nothing.



144
145
146
147
# File 'lib/pssh/pty.rb', line 144

def store(data)
  @stream << data
  @stream = @stream[-Pssh.cache_length..-1] if @stream.length > Pssh.cache_length
end