module Devops module Loader class << self def plugins config if defined?(Devops::Plugin) routes = {} plugins = Devops::Plugin.constants.collect{|s| Devops::Plugin.const_get(s)}.select {|const| const.class == Module} puts plugins.inspect plugins.each do |p| p.init(config) end end end end end end