Sha256: b0fb82ddd881ed08bb09e2701b861d688e6262b0675510a9085fff5d31507e0d

Contents?: true

Size: 566 Bytes

Versions: 7

Compression:

Stored size: 566 Bytes

Contents

# frozen_string_literal: true

module KPM
  module ApplicationHelper
    # 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)
    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
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
killbill-kpm-ui-3.0.3 app/helpers/kpm/application_helper.rb
killbill-kpm-ui-3.0.2 app/helpers/kpm/application_helper.rb
killbill-kpm-ui-2.1.1 app/helpers/kpm/application_helper.rb
killbill-kpm-ui-3.0.1 app/helpers/kpm/application_helper.rb
killbill-kpm-ui-2.0.2 app/helpers/kpm/application_helper.rb
killbill-kpm-ui-2.0.1 app/helpers/kpm/application_helper.rb
killbill-kpm-ui-2.0.0 app/helpers/kpm/application_helper.rb