Class: CmdSrm

Inherits:
CmdRm show all
Defined in:
bin/rumodule

Overview

Rm system command.

Constant Summary

Constant Summary

Constants included from Utility

Utility::LOADED, Utility::MODULEDIRS, Utility::RUMODULE_PUSH, Utility::SUBLOADED, Utility::SYSLOADED

Constants inherited from RumoduleCommon

RumoduleCommon::SHELL

Instance Method Summary (collapse)

Methods inherited from CmdRm

#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

#home

Instance Method Details

- (Object) action(mods, list = :system)



1001
1002
1003
1004
1005
1006
1007
1008
1009
# File 'bin/rumodule', line 1001

def action( mods, list = :system )
    mods.each do |mod|
        mod_path = findModule( mod )
        if _is_loaded( mod_path )
            loaded_mod = loadModule( mod_path )
            unregisterModule( loaded_mod, list )
        end
    end
end