Sha256: 533cc053bf349b7a55d32c7fdd5602cbe9132052f3d813d69760ac18c8c44a24
Contents?: true
Size: 829 Bytes
Versions: 1
Compression:
Stored size: 829 Bytes
Contents
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| ## NB: use full_path - since Ruby 1.9.2 - ./ no longer included in load path for security plugin_fullpath = File.expand_path( plugin ) puts " #{plugin} (#{plugin_fullpath})" end end end end # class Plugins end # module Slideshow
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slideshow-2.0.1 | lib/slideshow/cli/commands/plugins.rb |