Sha256: ddb51e6b09014d428520767c07c22a50b8f6835ea1210dd22e9ba523cc9470b9

Contents?: true

Size: 668 Bytes

Versions: 127

Compression:

Stored size: 668 Bytes

Contents

# encoding: utf-8
require_relative "scaffold"

# This module function should be used when gems or
# x-pack defines modules in their folder structures.
module LogStash module Modules module Util
  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
end end end

Version data entries

127 entries across 127 versions & 5 rubygems

Version Path
logstash-core-6.3.0-java lib/logstash/modules/util.rb
logstash-core-6.2.4-java lib/logstash/modules/util.rb
logstash-core-5.6.9-java lib/logstash/modules/util.rb
logstash-core-6.2.3-java lib/logstash/modules/util.rb
logstash-core-6.1.4-java lib/logstash/modules/util.rb
logstash-core-5.6.8-java lib/logstash/modules/util.rb
logstash-core-6.2.2-java lib/logstash/modules/util.rb
logstash-core-6.2.1-java lib/logstash/modules/util.rb
logstash-core-6.2.0-java lib/logstash/modules/util.rb
logstash-core-6.1.3-java lib/logstash/modules/util.rb
logstash-core-5.6.7-java lib/logstash/modules/util.rb
logstash-core-6.1.2-java lib/logstash/modules/util.rb
logstash-core-5.6.6-java lib/logstash/modules/util.rb
logstash-core-6.1.1-java lib/logstash/modules/util.rb
logstash-core-6.1.0-java lib/logstash/modules/util.rb
logstash-core-6.0.1-java lib/logstash/modules/util.rb
logstash-core-5.6.5-java lib/logstash/modules/util.rb
logstash-core-6.0.0-java lib/logstash/modules/util.rb
logstash-core-5.6.4-java lib/logstash/modules/util.rb
logstash-core-6.0.0.rc2-java lib/logstash/modules/util.rb