Completed
Push — master ( 1e4e4c...8be129 )
by Marin
05:19
created

Local::runCommands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 8
cts 8
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Anorgan\Deployer\Common\Server;
4
5
use Symfony\Component\Process\Process;
6
7
class Local extends AbstractServer
8
{
9 1
    public function runCommands()
10
    {
11 1
        $commands = implode('; ', $this->getCommands());
12
13 1
        $process = new Process($commands, $this->getPath());
14 1
        $process->setTimeout(600);
15 1
        $process->setIdleTimeout(null);
16
17 1
        $this->logger->info('Running "'.$process->getCommandLine().'"');
18 1
        $process->mustRun();
19 1
    }
20
}
21