Class: LASRpcUtils::RubySession

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#channelObject

Returns the value of attribute channel.

#closedObject

Returns the value of attribute closed.

#deletable_varsObject

Returns the value of attribute deletable_vars.

#mutexObject

Returns the value of attribute mutex.

#my_pidObject

Returns the value of attribute my_pid.

#ruby_folderObject

Returns the value of attribute ruby_folder.

#sequenceObject

Returns the value of attribute sequence.

#transportObject

FIXME: have this reuse sessions

Instance Method Details

#closeObject

#fetch_ruby_result(stdout, filename, blockmode: false) ⇒ Object

#init_ruby(try_harder: false) ⇒ Object

#relaunchObject

#ruby_binaryObject

#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