Sha256: 7cfc13a4cad0e2ea9b93afe39a7a8e0e9ba6df1f2d196bce20b4ee11168e7448

Contents?: true

Size: 620 Bytes

Versions: 18

Compression:

Stored size: 620 Bytes

Contents

module Phase
  module SSH
    module Runners

      module BastionRunner
        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
      end

      class Parallel < ::SSHKit::Runner::Parallel
        include BastionRunner
      end

      class Sequential < ::SSHKit::Runner::Sequential
        include BastionRunner
      end

      class Null < ::SSHKit::Runner::Null
        include BastionRunner
      end

    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
phase-1.0.2 lib/phase/kit/ssh/runners.rb
phase-1.0.1 lib/phase/kit/ssh/runners.rb
phase-1.0.0 lib/phase/kit/ssh/runners.rb
phase-1.0.0.rc2 lib/phase/kit/ssh/runners.rb
phase-1.0.0.rc1 lib/phase/kit/ssh/runners.rb
phase-0.0.17 lib/phase/kit/ssh/runners.rb
phase-0.0.16.1 lib/phase/kit/ssh/runners.rb
phase-0.0.16 lib/phase/kit/ssh/runners.rb
phase-0.0.15 lib/phase/kit/ssh/runners.rb
phase-0.0.14 lib/phase/kit/ssh/runners.rb
phase-0.0.13 lib/phase/kit/ssh/runners.rb
phase-0.0.12 lib/phase/kit/ssh/runners.rb
phase-0.0.11 lib/phase/kit/ssh/runners.rb
phase-0.0.10 lib/phase/kit/ssh/runners.rb
phase-0.0.9 lib/phase/kit/ssh/runners.rb
phase-0.0.8 lib/phase/kit/ssh/runners.rb
phase-0.0.7 lib/phase/kit/ssh/runners.rb
phase-0.0.6 lib/phase/kit/ssh/runners.rb