Module: Phase::SSH::Runners::BastionRunner

Included in:
Null, Parallel, Sequential
Defined in:
lib/phase/kit/ssh/runners.rb

Instance Method Summary collapse

Instance Method Details

#backend(host, &block) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/phase/kit/ssh/runners.rb', line 6

def backend(host, &block)
  backend = ::Phase.config.backend.new(host)
  address = options[:address_queue].pop

  backend.run do
    on_remote_host(address) { instance_exec(&block) }
  end
end