only care about directories next false if !directory.directory? # If there is a plugin file in the top-level directory, then load # that up. plugin_file = directory.join("plugin.rb") if plugin_file.file? puts "[INFO]loading monkey patch: #{plugin_file}" load(plugin_file) next true end end Vagrant.source_root.join(File.dirname(__FILE__) + "/patch/plugins/ communicators/").children(true).each do |directory| # Ignore non-directories next if !directory.directory? # Load from this directory, and exit if we successfully loaded a plugin puts directory next if plugin_load_proc.call(directory) end ϞϯΩʔύον 137݄23Ր༵