Class: HrrRbSsh::Connection::Channel::ChannelType::Session::RequestType::WindowChange

Inherits:
HrrRbSsh::Connection::Channel::ChannelType::Session::RequestType show all
Defined in:
lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/window_change.rb,
lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/window_change/context.rb

Defined Under Namespace

Classes: Context

Constant Summary collapse

NAME =
'window-change'

Class Method Summary collapse

Methods included from SubclassWithoutPreferenceListable

#[], #inherited, #list_supported

Class Method Details

.run(proc_chain, username, io, variables, message, options, session, logger: nil) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/window_change.rb', line 15

def self.run proc_chain, username, io, variables, message, options, session, logger: nil
  context = Context.new proc_chain, username, io, variables, message, session, logger: logger
  handler = options.fetch('connection_channel_request_window_change', RequestHandler.new {})
  handler.run context

  proc_chain.connect context.chain_proc
end