# File lib/mole.rb, line 77 def self.load_mole_configuration return unless moleable? raise "Unable to find the MOle configuration from `#{conf_file}" if conf_file and !File.exists? conf_file unless @config_loaded @config_loader = true if File.directory? conf_file logger.debug "--- Loading MOle configs files from directory `#{conf_file}" load_all_moles_relative_to( conf_file ) else logger.debug "--- Loading single MOle config #{conf_file}" load conf_file end end @config_loaded end