Project

General

Profile

« Previous | Next » 

Revision a5830764

Added by Dmitri Dolguikh almost 7 years ago

Fixes #19709 - check version before loading dependencies

View differences:

lib/proxy/plugin_initializer.rb
#resolve provider names to classes
grouped_with_providers.each {|group| group.resolve_providers(plugins.loaded)}
# validate prerequisite versions and availability
all_enabled = all_enabled_plugins_and_providers(grouped_with_providers)
grouped_with_providers.each do |group|
next if group.inactive?
group.validate_dependencies_or_fail(all_enabled)
end
# load provider plugin settings
grouped_with_providers.each {|group| group.load_provider_settings }
......
# configure each plugin & providers
grouped_with_providers.each {|group| group.configure }
# check prerequisites
# validate prerequisites again, as some may have been disabled during loading
all_enabled = all_enabled_plugins_and_providers(grouped_with_providers)
grouped_with_providers.each do |group|
next if group.inactive?

Also available in: Unified diff