Method: Doing::Plugins.list_plugins
- Defined in:
- lib/doing/plugin_manager.rb
.list_plugins(options = {}) ⇒ Object
List available plugins to stdout
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/doing/plugin_manager.rb', line 127 def list_plugins( = {}) separator = [:column] ? "\n" : "\t" type = [:type].nil? || [:type] =~ /all/i ? 'all' : valid_type([:type]) case type when :import puts plugin_names(type: :import, separator: separator) when :export puts plugin_names(type: :export, separator: separator) else print 'Import plugins: ' puts plugin_names(type: :import, separator: ', ') print 'Export plugins: ' puts plugin_names(type: :export, separator: ', ') end end |