class DevopsLoader def self.load #Devops::Routes.route "/version", DevopsVersion end def self.routes 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.routes end end end end