bridgetown-core/lib/bridgetown-core/plugin_manager.rb
# Reload .rb plugin files via the watcher
Reload .rb plugin files via the watcher
Reload . rb plugin files via the watcher
def reload_plugin_files
      plugins_path.each do |plugin_search_path|
        plugin_files = Utils.safe_glob(plugin_search_path, File.join("**", "*.rb"))
        Array(plugin_files).each do |name|
          Bridgetown.logger.debug "Reloading:", name.to_s
          self.class.add_registered_plugin name
          load name
        end
      end
    end
def reload_plugin_files plugins_path . each do | plugin_search_path | plugin_files = Utils . safe_glob ( plugin_search_path , File . join ( "**" , "*.rb" ) ) Array ( plugin_files ) . each do | name | Bridgetown . logger . debug "Reloading:" , name . to_s self . class . add_registered_plugin name load name end end end
Reload .rb plugin files via the watcher
Reload . rb plugin files via the watcher