Class: LASRpcUtils::RubySession
- Inherits:
-
Object
- Object
- LASRpcUtils::RubySession
- Includes:
- MintLogger
- Defined in:
- src/las-rpc-utils/lib/las-rpc-utils/transport.rb
Properties (Read/Write)
Properties (Read Only)
Constant Summary
Constants included from MintLogger
MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#closed ⇒ Object
Returns the value of attribute closed.
-
#deletable_vars ⇒ Object
Returns the value of attribute deletable_vars.
-
#mutex ⇒ Object
Returns the value of attribute mutex.
-
#my_pid ⇒ Object
Returns the value of attribute my_pid.
-
#ruby_folder ⇒ Object
Returns the value of attribute ruby_folder.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
-
#transport ⇒ Object
FIXME: have this reuse sessions.
Instance Method Summary collapse
- #close ⇒ Object
- #fetch_ruby_result(stdout, filename, blockmode: false) ⇒ Object
- #init_ruby(try_harder: false) ⇒ Object
-
#initialize(transport, no_session: false) ⇒ RubySession
constructor
A new instance of RubySession.
- #relaunch ⇒ Object
- #ruby_binary ⇒ Object
- #run_block(&block) ⇒ Object
- #run_code(block, ruby_command_timeout: 300) ⇒ Object
-
#run_code_direct(block, ruby_command_timeout: 300) ⇒ Object
Scoping is fun! This is so our file handles work right...
- #run_code_internal(final_str, no_result, ruby_command_timeout: 300) ⇒ Object
- #run_code_string(source, no_result: false, no_sync: false, ruby_command_timeout: 300) ⇒ Object
- #sanitize_source(source) ⇒ Object
- #validate_ruby(always_reset: false, log_message: nil, verbose_message: nil) ⇒ Object
Methods included from MintLogger::Utils::Common
#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send
Constructor Details
#initialize(transport, no_session: false) ⇒ RubySession
Returns a new instance of RubySession.
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel.
#closed ⇒ Object
Returns the value of attribute closed.
#deletable_vars ⇒ Object
Returns the value of attribute deletable_vars.
#mutex ⇒ Object
Returns the value of attribute mutex.
#my_pid ⇒ Object
Returns the value of attribute my_pid.
#ruby_folder ⇒ Object
Returns the value of attribute ruby_folder.
#sequence ⇒ Object
Returns the value of attribute sequence.
#transport ⇒ Object
FIXME: have this reuse sessions
Instance Method Details
#close ⇒ Object
#fetch_ruby_result(stdout, filename, blockmode: false) ⇒ Object
#init_ruby(try_harder: false) ⇒ Object
#relaunch ⇒ Object
#ruby_binary ⇒ Object
#run_block(&block) ⇒ Object
#run_code(block, ruby_command_timeout: 300) ⇒ Object
#run_code_direct(block, ruby_command_timeout: 300) ⇒ Object
Scoping is fun! This is so our file handles work right...