Class: HrrRbSsh::Connection::Channel::ChannelType::Session::RequestType::Env::Context
- Inherits:
-
Object
- Object
- HrrRbSsh::Connection::Channel::ChannelType::Session::RequestType::Env::Context
- Defined in:
- lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb
Instance Attribute Summary collapse
-
#io ⇒ Object
readonly
Returns the value of attribute io.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
-
#variable_name ⇒ Object
readonly
Returns the value of attribute variable_name.
-
#variable_value ⇒ Object
readonly
Returns the value of attribute variable_value.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
-
#vars ⇒ Object
readonly
Returns the value of attribute vars.
Instance Method Summary collapse
- #chain_proc(&block) ⇒ Object
- #close_session ⇒ Object
-
#initialize(proc_chain, username, io, variables, message, session) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(proc_chain, username, io, variables, message, session) ⇒ Context
Returns a new instance of Context.
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb', line 23 def initialize proc_chain, username, io, variables, , session @logger = Logger.new self.class.name @proc_chain = proc_chain @username = username @io = io @variables = variables @vars = variables @session = session @variable_name = [:'variable name'] @variable_value = [:'variable value'] end |
Instance Attribute Details
#io ⇒ Object (readonly)
Returns the value of attribute io.
14 15 16 |
# File 'lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb', line 14 def io @io end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
14 15 16 |
# File 'lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb', line 14 def logger @logger end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
14 15 16 |
# File 'lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb', line 14 def username @username end |
#variable_name ⇒ Object (readonly)
Returns the value of attribute variable_name.
14 15 16 |
# File 'lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb', line 14 def variable_name @variable_name end |
#variable_value ⇒ Object (readonly)
Returns the value of attribute variable_value.
14 15 16 |
# File 'lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb', line 14 def variable_value @variable_value end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
14 15 16 |
# File 'lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb', line 14 def variables @variables end |
#vars ⇒ Object (readonly)
Returns the value of attribute vars.
14 15 16 |
# File 'lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb', line 14 def vars @vars end |
Instance Method Details
#chain_proc(&block) ⇒ Object
37 38 39 |
# File 'lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb', line 37 def chain_proc &block @proc = block || @proc end |
#close_session ⇒ Object
41 42 43 |
# File 'lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb', line 41 def close_session @session.close end |