Class: CmdSadd
- Inherits:
-
CmdAdd
- Object
- RumoduleCommon
- Rumodule
- CmdAdd
- CmdSadd
- Defined in:
- bin/rumodule
Overview
System add command.
Constant Summary
Constant Summary
Constants included from Utility
Utility::LOADED, Utility::MODULEDIRS, Utility::RUMODULE_PUSH, Utility::SUBLOADED, Utility::SYSLOADED
Constants inherited from RumoduleCommon
Instance Method Summary (collapse)
-
- (Object) action(mods, list = :system)
Add modules if not loaded yet.
Methods inherited from CmdAdd
#add, #append_path, #conflict, #is_loaded, #prepend_path, #prereq, #pushenv, #remove_path, #setenv, #unsetenv
Methods inherited from Rumodule
#_is_loaded, #_output, flush, #getenvar, run
Methods included from Utility
#abort, #all_loaded, #commonHelp, #error, #findModule, #help, #loadModule, #loaded, #registerModule, #sys_loaded, #unregisterModule, #usage, #warning
Methods included from RumoduleMod
Instance Method Details
- (Object) action(mods, list = :system)
Add modules if not loaded yet.
912 913 914 915 916 917 918 919 920 921 922 |
# File 'bin/rumodule', line 912 def action( mods, list = :system ) mods.each do |mod| mod_path = findModule( mod ) if mod_path == nil error "Unknown module: \"#{mod}\"..." elsif !_is_loaded( mod_path ) loaded_mod = loadModule( mod_path ) registerModule( loaded_mod, list ) end end end |