summaryrefslogtreecommitdiff
path: root/src/UserModule.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/UserModule.php
parent11dc8c730dda2c5bd38cb386f96331c5ce3cac9c (diff)
Adjusts modulesv1.0.0
Diffstat (limited to 'src/UserModule.php')
-rw-r--r--src/UserModule.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/UserModule.php b/src/UserModule.php
index c230976..7347fed 100644
--- a/src/UserModule.php
+++ b/src/UserModule.php
@@ -40,7 +40,7 @@ class UserModule extends Module
/**
* @inheritDoc
*/
- public function getCommands(): array
+ public function execute(): void
{
if ($this->state === State::PRESENT) {
Connection::exec(implode(PHP_EOL, [
@@ -53,7 +53,5 @@ class UserModule extends Module
else if ($this->state === State::ABSENT) {
Connection::exec("sudo userdel $this->username");
}
-
- return [];
}
}