Sha256: 9969d220acab1d9908ee5c62509860def93fd86742865e20d7e0d02baf9893e4
Contents?: true
Size: 619 Bytes
Versions: 4
Compression:
Stored size: 619 Bytes
Contents
boot_load(:plugins, :initializers) do Mack.logger.debug "Initializing plugins..." unless configatron.mack.log.disable_initialization_logging plugins = [] # a list of all plugins Dir.glob(Mack::Paths.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 end
Version data entries
4 entries across 4 versions & 1 rubygems