handling missing gems during generatePluginsVersion

Fixes #11207
This commit is contained in:
Joao Duarte 2019-10-10 11:17:14 +01:00 committed by João Duarte
parent 15f0de3487
commit 8d19b5f078

View file

@ -14,6 +14,9 @@ module LogStash
def self.is_released?(plugin)
require 'gems'
Gems.info(plugin) != "This rubygem could not be found."
rescue Gems::NotFound => e
puts "Could not find gem #{plugin}"
false
end
def self.fetch_plugins_for(type)