Class: Phase::SSH::Backend

Inherits:
SSHKit::Backend::Netssh
  • Object
show all
Includes:
SSHKit::CommandHelper
Defined in:
lib/phase/ssh/backend.rb

Instance Method Summary collapse

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