Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function getCommand($command): string |
||
18 | { |
||
19 | $commands = $this->wrapArray($command); |
||
20 | |||
21 | $extraOptions = $this->getExtraOptions(); |
||
22 | |||
23 | $commandString = implode(PHP_EOL, $commands); |
||
24 | |||
25 | $delimiter = 'EOF-SPATIE-SSH'; |
||
26 | |||
27 | $target = $this->getTarget(); |
||
28 | |||
29 | return "ssh {$extraOptions} {$target} 'bash -se' << \\$delimiter".PHP_EOL |
||
30 | .$commandString.PHP_EOL |
||
31 | .$delimiter; |
||
32 | } |
||
33 | |||
71 |