summaryrefslogtreecommitdiff
path: root/src/AptModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/AptModule.php')
-rw-r--r--src/AptModule.php4
1 files changed, 1 insertions, 3 deletions
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 [];
}
}