Class: LogStash::Plugins::Registry::GemRegistry
- Inherits:
-
Object
- Object
- LogStash::Plugins::Registry::GemRegistry
- Defined in:
- lib/logstash/plugins/registry.rb
Overview
Add a bit more sanity with when interacting with the rubygems’ specifications database, most of out code interact directly with really low level components of bundler/rubygems we need to encapsulate that and this is a start.
Constant Summary collapse
- LOGSTASH_METADATA_KEY =
"logstash_plugin"
Class Method Summary collapse
Class Method Details
.installed_gems ⇒ Object
21 22 23 |
# File 'lib/logstash/plugins/registry.rb', line 21 def installed_gems ::Gem::Specification end |
.logstash_plugins ⇒ Object
25 26 27 28 29 |
# File 'lib/logstash/plugins/registry.rb', line 25 def logstash_plugins installed_gems .select { |spec| spec. && spec.[LOGSTASH_METADATA_KEY] } .collect { |spec| PluginRawContext.new(spec) } end |