NCD::CLI¶
NAME NCD::CLI¶
Module for the ncm-ncd CLI script
FUNCTIONS¶
- app_options
ExtendCAF::Application
options
- setLockCCMConfig
Set
CACHEMGR
attribute with EDG::WP4::CCM::CacheManager fromcacheroot
andCCM_CONFIG
attribute with locked configuration withprofileID
.Return SUCCESS on success, undef otherwise.
- getCCMConfig
Return the CCM configuration instance from theCCM_CONFIG
atribute (set bysetLockCCMConfig
method).
- lock
Try to take the lock for the
ncm-ncd
application. Lock instance is set inLOCK
attribute.Return SUCCESS on success, undef otherwise.
- finish
Release the lock (if this instance has it) and exit withret
exitcode.
- _initialize
Initialize theCAF::Application
- check_noquattor
Handle the presence of the /etc/noquattor file. Exits, does not return anything.
- check_options
Check for any conflicting options.
Exits on any conflict, does not return anything.
- action
Take action: list, unconfigure or (default) configure.
Report the components with
list
and exit. Otherwise return a hashref and the action name.Takes existing exception context as argument.
- report_exit
Given the result of the
NCD::ComponentProxyList
action, report the succes and/or any errors and warnings andexit
with the appropriate exitcode.Takes a second argument
action
to create appropriate message.
- main
The CLI main method