Module: PluginManager::List
- Defined in:
- lib/psdk/helpers/plugin_manager/list.rb
Overview
Module handling the listing of plugins
Constant Summary collapse
- SCRIPTS_FOLDER =
Folder containing scripts
'scripts'- PLUGIN_INFO_FILE =
File containing plugin information
"#{SCRIPTS_FOLDER}/plugins.dat".freeze
Class Method Summary collapse
-
.list_plugins ⇒ Object
List all the plugins.
Class Method Details
.list_plugins ⇒ Object
List all the plugins
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/psdk/helpers/plugin_manager/list.rb', line 13 def list_plugins plugins = load_existing_plugins show_splash(' List of your plugins') if plugins.empty? puts 'No plugins installed.' return end plugins.each do |plugin| puts "- \e[34m#{plugin.name}\e[36m v#{plugin.version}\e[0m" puts " authors: #{plugin..join(', ')}" end end |