lib/octofacts_updater/cli.rb
# Load plugins as per configuration file. Note: all plugins embedded in this gem are automatically
# loaded. This is just for user-specified plugins.
#
# plugins - An Array of file names to load
Load plugins as per configuration file. Note: all plugins embedded in this gem are automatically
loaded. This is just for user-specified plugins.

An Array of file names to load
Load plugins as per configuration file . Note : all plugins embedded in this gem are automatically loaded . This is just for user - specified plugins . An Array of file names to load
def load_plugins(plugins)
      unless plugins.is_a?(Array)
        raise ArgumentError, "load_plugins expects an array, got #{plugins.inspect}"
      end
      plugins.each do |plugin|
        plugin_file = plugin.start_with?("/") ? plugin : File.expand_path("../../#{plugin}", File.dirname(__FILE__))
        unless File.file?(plugin_file)
          raise Errno::ENOENT, "Failed to find plugin #{plugin.inspect} at #{plugin_file}"
        end
        require plugin_file
      end
    end
def load_plugins ( plugins ) unless plugins . is_a? ( Array ) raise ArgumentError , "load_plugins expects an array, got #{plugins.inspect}" end plugins . each do | plugin | plugin_file = plugin . start_with? ( "/" ) ? plugin : File . expand_path ( "../../#{plugin}" , File . dirname ( __FILE__ ) ) unless File . file? ( plugin_file ) raise Errno :: ENOENT , "Failed to find plugin #{plugin.inspect} at #{plugin_file}" end require plugin_file end end
Load plugins as per configuration file.
Load plugins as per configuration file .
plugins
<not_specific>