Sha256: 5fcf1e3319fb328ffdd95ddb902ebc037d54451e48e7a8628304cfba2647168e

Contents?: true

Size: 457 Bytes

Versions: 15

Compression:

Stored size: 457 Bytes

Contents

module SupplyDrop
  module Writer
    class Batched
      def initialize(logger)
        @outputs = {}
        @logger = logger
      end

      def collect_output(host, data)
        @outputs[host] ||= ""
        @outputs[host] << data
      end

      def all_output_collected
        @outputs.keys.sort.each do |host|
          @logger.info "Puppet output for #{host}"
          @logger.debug @outputs[host], host
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
supply_drop-0.17.0 lib/supply_drop/writer/batched.rb
supply_drop-0.16.1 lib/supply_drop/writer/batched.rb
supply_drop-0.16.0 lib/supply_drop/writer/batched.rb
supply_drop-0.15.0 lib/supply_drop/writer/batched.rb
supply_drop-0.13.1 lib/supply_drop/writer/batched.rb
supply_drop-0.13.0 lib/supply_drop/writer/batched.rb
supply_drop-0.12.0 lib/supply_drop/writer/batched.rb
supply_drop-0.11.1 lib/supply_drop/writer/batched.rb
supply_drop-0.11.0 lib/supply_drop/writer/batched.rb
supply_drop-0.10.2 lib/supply_drop/writer/batched.rb
supply_drop-0.10.1 lib/supply_drop/writer/batched.rb
supply_drop-0.10.0 lib/supply_drop/writer/batched.rb
supply_drop-0.9.0 lib/supply_drop/writer/batched.rb
supply_drop-0.8.1 lib/supply_drop/writer/batched.rb
supply_drop-0.8.0 lib/supply_drop/writer/batched.rb