We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cf9081 commit 93df4b3Copy full SHA for 93df4b3
1 file changed
src/Task/AbstractCrontabCommand.php
@@ -22,6 +22,11 @@ public function __construct(
22
public readonly iRunner $commandRunner = new WithDeployerFunctions()
23
) {}
24
25
+ /**
26
+ * Checks for the HasOptionsInterface and if it's implemented the return value is used as base. Then adds the user option if it is set.
27
+ *
28
+ * @return array<int, string> The options to pass to the crontab command
29
+ */
30
final public function getOptionsWithUser() : array {
31
$options = $this instanceof HasOptionsInterface ? $this->getOptions() : [];
32
!$this->user ?: $options[] = "-u $this->user";
0 commit comments