Module: LogStash::Modules::Util
- Defined in:
- lib/logstash/modules/util.rb
Class Method Summary collapse
Class Method Details
.register_local_modules(path) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/logstash/modules/util.rb', line 7 def self.register_local_modules(path) modules_path = ::File.join(path, "modules") ::Dir.foreach(modules_path) do |item| # Ignore unix relative path ids next if item == '.' or item == '..' # Ignore non-directories next if !::File.directory?(::File.join(modules_path, ::File::Separator, item)) LogStash::PLUGIN_REGISTRY.add(:modules, item, Scaffold.new(item, ::File.join(modules_path, item, "configuration"))) end end |