Top Level Namespace

Defined Under Namespace

Modules: Clamp, FileWatch, JRubyBug2558SocketPeerAddrBugFix, Kernel, LibC, LogStash, Puma Classes: Array, ENV, Exception, Hash, HotThreadsReport, Socket, TCPSocket, UDPSocket

Constant Summary collapse

BUILD_INFO =

DO NOT EDIT this file acts as a placeholder for build information when executing logstash in dev mode (outside of a package build)

{}
LOGSTASH_VERSION =

TODO: (colin) the logstash-core gem uses it’s own version number in logstash-core/lib/logstash-core/version.rb

there are some dependencies in logstash-core on the LOGSTASH_VERSION constant this is why
the logstash version is currently defined here in logstash-core/lib/logstash/version.rb but
eventually this file should be in the root logstash lib fir and dependencies in logstash-core should be
fixed.
"5.5.1"
LOGSTASH_CORE_VERSION =

The version of logstash core gem.

Note to authors: this should not include dashes because ‘gem’ barfs if you include a dash in the version string.

"5.5.1"
ROOT =
File.dirname(__FILE__)

Instance Method Summary collapse

Instance Method Details

#register_local_modules(path) ⇒ Object



27
28
29
30
31
32
33
34
35
36
# File 'lib/logstash/runner.rb', line 27

def register_local_modules(path)
  modules_path = File.join(path, File::Separator, "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, LogStash::Modules::Scaffold.new(item, File.join(modules_path, File::Separator, item, File::Separator, "configuration")))
  end
end