Sha256: 5ce6c788346a14eaf8f0ce4c89d4d124ff094ce6a7e9fb11cab396d86ed9b00b
Contents?: true
Size: 519 Bytes
Versions: 6
Compression:
Stored size: 519 Bytes
Contents
require 'kpm/client' module KPM class PluginsController < EngineController def index begin plugins = ::Killbill::KPM::KPMClient.get_available_plugins(true, options_for_klient) rescue => e # No connectivity, GitHub down, ... Rails.logger.warn("Unable to get latest plugins, trying built-in directory: #{e.inspect}") plugins = ::Killbill::KPM::KPMClient.get_available_plugins(false, options_for_klient) end @plugins = Hash[plugins.sort] end end end
Version data entries
6 entries across 6 versions & 2 rubygems