Class: LASRpcUtils::LocalTransport
- Inherits:
-
AbstractTransport
- Object
- AbstractTransport
- LASRpcUtils::LocalTransport
- Includes:
- MintLogger
- Defined in:
- src/las-rpc-utils/lib/las-rpc-utils/local-transport.rb
Direct Known Subclasses
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
Constants inherited from AbstractTransport
AbstractTransport::OKAY, AbstractTransport::PROMPT_PREAMBLE, AbstractTransport::REBOOTED, AbstractTransport::SCRIPT_END, AbstractTransport::SCRIPT_FAIL, AbstractTransport::SCRIPT_READY, AbstractTransport::SCRIPT_RESULT, AbstractTransport::SCRIPT_START
Instance Attribute Summary collapse
-
#direct ⇒ Object
Returns the value of attribute direct.
Attributes inherited from AbstractTransport
#channel_mutex, #dontkillme, #eof
Instance Method Summary collapse
- #close ⇒ Object
- #directfile(remote) ⇒ Object
- #directput(remote, content) ⇒ Object
- #directrm(remote) ⇒ Object
-
#flush_all ⇒ Object
An attempt to flush our stuff to try and stop the PTY eating things...
-
#hop(host, type, transport_options) ⇒ Object
hop to the next transport FIXME: support more ssh params, obv!.
-
#initialize(host, transport_options, parent_transport, channel_id: nil) ⇒ LocalTransport
constructor
Transport options for SSH: sudo_user - use sudo sudo_password - password for sudo, if required sudo_shell_type - "su" or "direct" - direct is default, which will run sudo -i port - default 22.
- #launch_local ⇒ Object
-
#process_buffers(select_time: 0.001) ⇒ Object
This should IO.select, of course...
-
#send_text(text, newline: true) ⇒ Object
Why this? because it might fix issues with mac virtualbox....
Methods included from MintLogger::Utils::Common
#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send
Methods inherited from AbstractTransport
#alive?, #allocate, #allocated?, #buffer_length, #debug?, #disable_history, #execute, #in_use?, #info?, #logconsole, #platform, #release, #reserve, #reserved?, #set_default_init, #set_parent, #start_channel, #start_execute, #unallocate, #uuid, #wait_for_complete, #wait_for_prompt, #wait_for_stdout, #wait_for_stream_start, #wait_respond