module Slideshow class Plugins include LogUtils::Logging include PluginHelper ### fix: remove opts, use config (wrapped!!) def initialize( opts, config ) @opts = opts @config = config end attr_reader :opts, :config def run puts '' puts 'Plugin scripts on the load path' find_plugin_patterns.each_with_index do |pattern,i| puts " [#{i+1}] #{pattern}" end puts ' include:' plugins = find_plugins if plugins.empty? puts " -- none --" else plugins.each do |plugin| puts " #{plugin}" end end end end # class Plugins end # module Slideshow