Completed
Push — master ( b77c5c...4fbeac )
by Jeroen
10s
created

BuildCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 6
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 6
loc 6
ccs 0
cts 1
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 2
1
<?php
2
3
/*
4
 * This file is part of the Conveyor package.
5
 *
6
 * (c) Jeroen Fiege <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Webcreate\Conveyor\Command;
13
14
use Symfony\Component\Console\Input\InputArgument;
15
use Symfony\Component\Console\Input\InputInterface;
16
use Symfony\Component\Console\Output\OutputInterface;
17
18 View Code Duplication
class BuildCommand extends AbstractCommand
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
19
{
20 2
    protected function configure()
21
    {
22
        $this
23 2
            ->setName('build')
24 2
            ->setDescription('Build')
25 2
            ->addArgument('target', InputArgument::REQUIRED, 'Target to build')
26 2
            ->addArgument('version', InputArgument::REQUIRED, 'Version to build')
27
        ;
28 2
    }
29
30
    protected function execute(InputInterface $input, OutputInterface $output)
31
    {
32
        $deploy = $this->getConveyor($input, $output, $this->getHelperSet());
33
34
        $deploy->build($input->getArgument('target'), $input->getArgument('version'));
35
    }
36
}
37