lib/odania/plugin.rb in odania-0.0.11 vs lib/odania/plugin.rb in odania-0.0.13
- old
+ new
@@ -1,8 +1,9 @@
module Odania
class Plugin < Odania::Consul
def plugins_config
configs = retrieve_value 'plugins'
+ configs = [configs] unless configs.kind_of?(Array)
result = []
configs.each do |json_data|
begin
result << JSON.parse(json_data[:value])