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