From 20d9f63918d3b2bd75853182063f43eb36d7cd8a Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 28 Apr 2021 13:58:55 +0200 Subject: Adjusts modules --- src/AptModule.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/AptModule.php') diff --git a/src/AptModule.php b/src/AptModule.php index c133521..8820a13 100644 --- a/src/AptModule.php +++ b/src/AptModule.php @@ -36,7 +36,7 @@ class AptModule extends Module /** * @inheritDoc */ - public function getCommands(): array + public function execute(): void { if ($this->state === State::PRESENT) { Connection::exec("sudo apt install -y $this->package"); @@ -44,7 +44,5 @@ class AptModule extends Module else if ($this->state === State::ABSENT) { Connection::exec("sudo apt remove -y $this->package"); } - - return []; } } -- cgit v1.2.3