Class: HrrRbSsh::Connection::RequestHandler::ReferenceEnvRequestHandler
- Inherits:
-
HrrRbSsh::Connection::RequestHandler
- Object
- HrrRbSsh::Connection::RequestHandler
- HrrRbSsh::Connection::RequestHandler::ReferenceEnvRequestHandler
- Defined in:
- lib/hrr_rb_ssh/connection/request_handler/reference_env_request_handler.rb
Instance Method Summary collapse
-
#initialize ⇒ ReferenceEnvRequestHandler
constructor
A new instance of ReferenceEnvRequestHandler.
Methods inherited from HrrRbSsh::Connection::RequestHandler
Constructor Details
#initialize ⇒ ReferenceEnvRequestHandler
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 |