Sha256: ba7a1857161e5618b076d11fdf9c818f63f12a9763040fb14c1fb94f8bf6cb44
Contents?: true
Size: 468 Bytes
Versions: 7
Compression:
Stored size: 468 Bytes
Contents
plugins = [] # a list of all plugins Dir.glob(File.join(Mack.root, "vendor", "plugins", "*")).each do |d| plugins << d $: << File.join(d, "lib") # add the lib for this plugin to the global load path end plugins.sort.each do |plug| begin require File.join(plug, "init.rb") # load the init.rb for each plugin. rescue Exception => e puts e.message end $:.delete(File.join(plug, "lib")) # remove the plugins lib directory from the global load path. end
Version data entries
7 entries across 7 versions & 1 rubygems