| Conditions | 3 |
| Paths | 4 |
| Total Lines | 22 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 39 | protected function buildCommand() |
||
| 40 | { |
||
| 41 | $command = new Command(); |
||
| 42 | $command |
||
| 43 | ->setCommand('ssh') |
||
| 44 | ->addArgument(new Argument($this->sshString)); |
||
| 45 | |||
| 46 | if (null !== $this->sshPort) { |
||
| 47 | $command->addArgument(new Argument('-p', $this->sshPort)); |
||
| 48 | } |
||
| 49 | |||
| 50 | if (null !== $this->sshIdentityFile) { |
||
| 51 | $command->addArgument(new Argument('-i', $this->sshIdentityFile)); |
||
| 52 | } |
||
| 53 | |||
| 54 | $command |
||
| 55 | ->addArgument(new Argument('top', null, null, false)) |
||
| 56 | ->addArgument(new Argument('-b')) |
||
| 57 | ->addArgument(new Argument('-n', 1)); |
||
| 58 | |||
| 59 | return $command; |
||
| 60 | } |
||
| 61 | } |