class HrrRbSsh::Connection::Channel::ChannelType::Session::RequestType::WindowChange::Context

Attributes

io[R]
terminal_height_pixels[R]
terminal_height_rows[R]
terminal_width_columns[R]
terminal_width_pixels[R]
username[R]
variables[R]
vars[R]

Public Class Methods

new(proc_chain, username, io, variables, message, session, logger: nil) click to toggle source
# File lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/window_change/context.rb, line 26
def initialize proc_chain, username, io, variables, message, session, logger: nil
  self.logger = logger

  @proc_chain = proc_chain
  @username   = username
  @io         = io
  @variables  = variables
  @vars       = variables
  @session    = session

  @terminal_width_columns = message[:'terminal width, columns']
  @terminal_height_rows   = message[:'terminal height, rows']
  @terminal_width_pixels  = message[:'terminal width, pixels']
  @terminal_height_pixels = message[:'terminal height, pixels']
end

Public Instance Methods

chain_proc(&block) click to toggle source
# File lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/window_change/context.rb, line 42
def chain_proc &block
  @proc = block || @proc
end
close_session() click to toggle source
# File lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/window_change/context.rb, line 46
def close_session
  @session.close
end