Sha256: 0ac1ce0d508366d80ae43b1326fca77f64a57b398adc3cc680ffb5583c8fceee
Contents?: true
Size: 588 Bytes
Versions: 9
Compression:
Stored size: 588 Bytes
Contents
class Indocker::ServerPool def initialize(configuration:, logger:) @logger = logger @configuration = configuration @contexts = configuration.servers.map do |server| Indocker::DeployContext.new( logger: @logger, configuration: configuration, server: server, ) end end def get(server) Indocker::DeployContext.new( logger: @logger, configuration: @configuration, server: server, ) end def each(&proc) @contexts.each(&proc) end def close_sessions @contexts.each(&:close_session) end end
Version data entries
9 entries across 9 versions & 1 rubygems