summaryrefslogtreecommitdiff
path: root/src/AptModule.php
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-04-28 13:58:55 +0200
committerDaniel Weipert <code@drogueronin.de>2021-04-28 13:58:55 +0200
commit20d9f63918d3b2bd75853182063f43eb36d7cd8a (patch)
treeb6f48898297f761dcec8532b524844cc968ec565 /src/AptModule.php
parent11dc8c730dda2c5bd38cb386f96331c5ce3cac9c (diff)
Adjusts modulesv1.0.0
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 [];
}
}