Class: RemoteRuby::LocalStdinAdapter
- Inherits:
-
StdinProcessAdapter
- Object
- ConnectionAdapter
- StdinProcessAdapter
- RemoteRuby::LocalStdinAdapter
- 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
-
#working_dir ⇒ Object
readonly
Returns the value of attribute working_dir.
Instance Method Summary collapse
- #connection_name ⇒ Object
-
#initialize(working_dir: '.') ⇒ LocalStdinAdapter
constructor
A new instance of LocalStdinAdapter.
Methods inherited from StdinProcessAdapter
Methods inherited from ConnectionAdapter
Constructor Details
#initialize(working_dir: '.') ⇒ LocalStdinAdapter
Returns a new instance of LocalStdinAdapter.
9 10 11 12 |
# File 'lib/remote_ruby/connection_adapter/local_stdin_adapter.rb', line 9 def initialize(working_dir: '.') super @working_dir = working_dir end |
Instance Attribute Details
#working_dir ⇒ Object (readonly)
Returns the value of attribute working_dir.
7 8 9 |
# File 'lib/remote_ruby/connection_adapter/local_stdin_adapter.rb', line 7 def working_dir @working_dir end |
Instance Method Details
#connection_name ⇒ Object
14 15 16 |
# File 'lib/remote_ruby/connection_adapter/local_stdin_adapter.rb', line 14 def connection_name working_dir end |