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