class RemoteRuby::ConnectionAdapter

Base class for other connection adapters.

Public Class Methods

new(**args) click to toggle source

Initializers of adapters should receive only keyword arguments. May be overriden in a child class.

# File lib/remote_ruby/connection_adapter.rb, line 6
def initialize(**args); end

Public Instance Methods

connection_name() click to toggle source

This will be displayed as a prefix when adapter writes something to emulated standard output or standard error. May be overriden in a child class.

# File lib/remote_ruby/connection_adapter.rb, line 11
def connection_name
  self.class.name
end
open(_code) click to toggle source

Override in child class. Receives Ruby code as string and yields two readable streams: for emulated standard output and standard error.

# File lib/remote_ruby/connection_adapter.rb, line 17
def open(_code)
  raise NotImplementedError
end