From 3c24346317f55a9d0daa545a13834cf6f8214a73 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Wed, 29 Apr 2020 11:37:00 +0200 Subject: [PATCH] Rename install to process --- install.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.py b/install.py index a7478eb..2733578 100755 --- a/install.py +++ b/install.py @@ -257,7 +257,7 @@ class Installer: p_dest.write_text(content, append=append) - def install(self, programs: Optional[List[str]] = None) -> None: + def process(self, programs: Optional[List[str]] = None) -> None: """Install the programs provided. If no program is provided, use the conf file to find the programs. @@ -269,15 +269,15 @@ class Installer: programs = list(self.conf.keys()) for program in programs: if ui.ask_yes_no("Do you wish to install {}?".format(program)): - self.install_program(program) + self.process_program(program) else: ui.info_2("Skipping {}".format(program)) else: for program in programs: - self.install_program(program) + self.process_program(program) - def install_program(self, program: str) -> None: - """Install one program (called by self.install()). + def process_program(self, program: str) -> None: + """Install one program (called by self.process()). Call indivdual methods from the conf file. """ @@ -374,7 +374,7 @@ def main() -> None: ui.info_1(program) else: - installer.install(programs=programs) + installer.process(programs=programs) if __name__ == "__main__":