Class: LASRpcUtils::LocalTransport

Inherits:
AbstractTransport show all
Includes:
MintLogger
Defined in:
src/las-rpc-utils/lib/las-rpc-utils/local-transport.rb

Direct Known Subclasses

DockerTransport

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

Attributes inherited from AbstractTransport

#channel_mutex, #dontkillme, #eof

Instance Method Summary collapse

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

Constructor Details

#initialize(host, transport_options, parent_transport, channel_id: nil) ⇒ LocalTransport

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

Instance Attribute Details

#directObject

Returns the value of attribute direct.

Instance Method Details

#closeObject

#directfile(remote) ⇒ Object

#directput(remote, content) ⇒ Object

#directrm(remote) ⇒ Object

#flush_allObject

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!

#launch_localObject

#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....