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

Version Path
indocker-0.1.8 lib/indocker/server_pool.rb
indocker-0.1.7 lib/indocker/server_pool.rb
indocker-0.1.6 lib/indocker/server_pool.rb
indocker-0.1.5 lib/indocker/server_pool.rb
indocker-0.1.4 lib/indocker/server_pool.rb
indocker-0.1.3 lib/indocker/server_pool.rb
indocker-0.1.2 lib/indocker/server_pool.rb
indocker-0.1.1 lib/indocker/server_pool.rb
indocker-0.1.0 lib/indocker/server_pool.rb