Project

General

Profile

action #51227

Updated by okurz almost 5 years ago

## Motivation 

 There is an existing function called **systemctl** from **lib/utils.pm** 
 utils.pm This function is too big. used by many modules. 
 This ticket is about moving the existing **systemctl** function into the new library **Utils::Systemd**. 


 ## Acceptance criteria 

 - **AC1:** The function **systemctl** is only defined in **Utils::Systemd** 
 - **AC2:** All modules that use **systemctl** are verified to work (`use Utils::Systemd 'systemctl'`) 
 - **AC3:** All modules that use **systemctl** have a specific function import for utils (like `use utils 'zypper_call';`) 
 - **AC4:** None of the modules that use **systemctl** have a generic import for utils (`use utils;`) 


 ## Further details 
 There is an existing function called **systemctl** from **lib/utils.pm** 
 This function is used by many modules. 
 This ticket is about moving the existing **systemctl** function into the new library **Utils::Systemd**. 

Back