summaryrefslogtreecommitdiff
path: root/src/FileModule.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/FileModule.php
parent11dc8c730dda2c5bd38cb386f96331c5ce3cac9c (diff)
Adjusts modulesv1.0.0
Diffstat (limited to 'src/FileModule.php')
-rw-r--r--src/FileModule.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/FileModule.php b/src/FileModule.php
index 95ba771..31efa82 100644
--- a/src/FileModule.php
+++ b/src/FileModule.php
@@ -26,7 +26,7 @@ class FileModule extends Module
/**
* @inheritDoc
*/
- public function getCommands(): array
+ public function execute(): void
{
if ($this->state === State::PRESENT) {
Connection::exec(
@@ -37,7 +37,5 @@ class FileModule extends Module
else {
Connection::exec("sudo rm -rf $this->path");
}
-
- return [];
}
}