Module: KPM::ApplicationHelper
- Defined in:
- app/helpers/kpm/application_helper.rb
Instance Method Summary collapse
-
#kpm_plugin_installed?(nodes_info) ⇒ Boolean
Return true if the KPM plugin is on at least one node (INSTALL_PLUGIN and UNINSTALL_PLUGIN are handled by KPM plugin, not by the core).
Instance Method Details
#kpm_plugin_installed?(nodes_info) ⇒ Boolean
Return true if the KPM plugin is on at least one node (INSTALL_PLUGIN and UNINSTALL_PLUGIN are handled by KPM plugin, not by the core)
7 8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/kpm/application_helper.rb', line 7 def kpm_plugin_installed?(nodes_info) nodes_info.each do |node_info| next if (node_info.plugins_info || []).empty? node_info.plugins_info.each do |plugin_info| return true if plugin_info.plugin_name == 'org.kill-bill.billing.killbill-platform-osgi-bundles-kpm' end end false end |