Class: Phase::SSH::Backend
- Inherits:
-
SSHKit::Backend::Netssh
- Object
- SSHKit::Backend::Netssh
- Phase::SSH::Backend
- Includes:
- SSHKit::CommandHelper
- Defined in:
- lib/phase/ssh/backend.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Backend
constructor
A new instance of Backend.
- #on_remote_host(remote_host, &block) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Backend
Returns a new instance of Backend.
6 7 8 9 10 |
# File 'lib/phase/ssh/backend.rb', line 6 def initialize(*args) # BUG: Backend::Netssh doesn't assign @pool when subclassed. self.class.pool = ::SSHKit::Backend::ConnectionPool.new super end |
Instance Method Details
#on_remote_host(remote_host, &block) ⇒ Object
12 13 14 15 |
# File 'lib/phase/ssh/backend.rb', line 12 def on_remote_host(remote_host, &block) @remote_host = remote_host yield end |