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