Class: HrrRbSsh::Connection::RequestHandler::ReferenceEnvRequestHandler

Inherits:
HrrRbSsh::Connection::RequestHandler show all
Defined in:
lib/hrr_rb_ssh/connection/request_handler/reference_env_request_handler.rb

Instance Method Summary collapse

Methods inherited from HrrRbSsh::Connection::RequestHandler

#run

Constructor Details

#initializeReferenceEnvRequestHandler

Returns a new instance of ReferenceEnvRequestHandler.



10
11
12
13
14
15
# File 'lib/hrr_rb_ssh/connection/request_handler/reference_env_request_handler.rb', line 10

def initialize
  @proc = Proc.new { |context|
    context.vars[:env] ||= Hash.new
    context.vars[:env][context.variable_name] = context.variable_value
  }
end