Class: RemoteRuby::LocalStdinAdapter

Inherits:
StdinProcessAdapter show all
Defined in:
lib/remote_ruby/connection_adapter/local_stdin_adapter.rb

Overview

An adapter to expecute Ruby code on the local macine inside a specified directory

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from StdinProcessAdapter

#open

Methods inherited from ConnectionAdapter

#open

Constructor Details

#initialize(working_dir: '.') ⇒ LocalStdinAdapter

Returns a new instance of LocalStdinAdapter.


7
8
9
# File 'lib/remote_ruby/connection_adapter/local_stdin_adapter.rb', line 7

def initialize(working_dir: '.')
  @working_dir = working_dir
end

Instance Attribute Details

#working_dirObject (readonly)

Returns the value of attribute working_dir


5
6
7
# File 'lib/remote_ruby/connection_adapter/local_stdin_adapter.rb', line 5

def working_dir
  @working_dir
end

Instance Method Details

#connection_nameObject


11
12
13
# File 'lib/remote_ruby/connection_adapter/local_stdin_adapter.rb', line 11

def connection_name
  working_dir
end