Class: LogStash::Util::DefaultsPrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/util/defaults_printer.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ DefaultsPrinter

Returns a new instance of DefaultsPrinter.



13
14
15
16
# File 'lib/logstash/util/defaults_printer.rb', line 13

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

Class Method Details



9
10
11
# File 'lib/logstash/util/defaults_printer.rb', line 9

def self.print(settings)
  new(settings).print
end

Instance Method Details



18
19
20
21
22
23
24
# File 'lib/logstash/util/defaults_printer.rb', line 18

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