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/FileModule.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/FileModule.php') 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 []; } } -- cgit v1.2.3