Sha256: cc81f4dd45e8ca5388a4e9f028afa1ecf504e516601272c98faf7234bd0fc5e6

Contents?: true

Size: 634 Bytes

Versions: 11

Compression:

Stored size: 634 Bytes

Contents

# encoding: utf-8
require "logstash/namespace"
require "logstash/util"
require "logstash/util/worker_threads_default_printer"


# This class exists to format the settings for defaults used
module LogStash module Util class DefaultsPrinter
  def self.print(settings)
    new(settings).print
  end

  def initialize(settings)
    @settings = settings
    @printers = [workers]
  end

  def print
    collector = []
    @printers.each do |printer|
      printer.visit(collector)
    end
    "Default settings used: " + collector.join(', ')
  end

  private

  def workers
    WorkerThreadsDefaultPrinter.new(@settings)
  end
end end end

Version data entries

11 entries across 10 versions & 2 rubygems

Version Path
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-core-2.0.1-java/lib/logstash/util/defaults_printer.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/util/defaults_printer.rb
logstash-core-2.0.1-java lib/logstash/util/defaults_printer.rb
logstash-core-2.1.0.snapshot1-java lib/logstash/util/defaults_printer.rb
logstash-core-2.0.1.snapshot1-java lib/logstash/util/defaults_printer.rb
logstash-core-2.0.0-java lib/logstash/util/defaults_printer.rb
logstash-core-2.0.0.rc1-java lib/logstash/util/defaults_printer.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/logstash-core-2.0.0.beta3-java/lib/logstash/util/defaults_printer.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/logstash-core-2.0.0.beta3-java/lib/logstash/util/defaults_printer.rb
logstash-core-2.0.0.beta3-java lib/logstash/util/defaults_printer.rb
logstash-core-2.0.0.beta2-java lib/logstash/util/defaults_printer.rb