lib/rubo/robot.rb
# Loads every plugin in the given directory paths.
#
# @param plugin_paths [Array<String>]
# @return [void]
Loads every plugin in the given directory paths.
Loads every plugin in the given directory paths .
def load_plugins(*plugin_paths)
      plugin_paths.flatten.each do |plugin_path|
        plugin_path = File.expand_path(plugin_path)
        next unless File.directory?(plugin_path)
        logger.debug "Loading plugins from \"#{plugin_path}\""
        Dir[plugin_path + '/**/*.rb'].each do |f|
          load_plugin(f)
        end
      end
    end
def load_plugins ( * plugin_paths ) plugin_paths . flatten . each do | plugin_path | plugin_path = File . expand_path ( plugin_path ) next unless File . directory? ( plugin_path ) logger . debug "Loading plugins from \"#{plugin_path}\"" Dir [ plugin_path + '/**/*.rb' ] . each do | f | load_plugin ( f ) end end end
Loads every plugin in the given directory paths.
Loads every plugin in the given directory paths .
None
void
plugin_paths
<not_specific>
<not_specific>
None