class Vcsmap::PluginList
Constants
- PLUGINS
Public Class Methods
all()
click to toggle source
# File lib/vcsmap/plugin_list.rb, line 46 def self.all PLUGINS.sort end
find(name)
click to toggle source
# File lib/vcsmap/plugin_list.rb, line 50 def self.find(name) PLUGINS.fetch(name.to_sym) end
get_object(name)
click to toggle source
# File lib/vcsmap/plugin_list.rb, line 54 def self.get_object(name) plugin = find(name) Object.const_get(plugin[:class_name]).new end
render_list()
click to toggle source
# File lib/vcsmap/plugin_list.rb, line 59 def self.render_list all.each do |plugin| puts Pastel.new.green "[#{plugin[0]}] #{plugin[1][:title]}" puts plugin[1][:description] puts end end