Code Duplication    Length = 24-29 lines in 2 locations

src/Command/CloudFoundry/DeployCommand.php 1 location

@@ 43-66 (lines=24) @@
40
     *
41
     * @return void
42
     */
43
    protected function configure()
44
    {
45
        $this
46
            ->setName('graviton:deployment:cf:deploy')
47
            ->setDescription('Deploys an application to a CF instance.')
48
            ->addArgument(
49
                'applicationName',
50
                InputArgument::REQUIRED,
51
                'Which application shall be deployed?'
52
            )
53
            ->addArgument(
54
                'versionName',
55
                InputArgument::OPTIONAL,
56
                'Which application shall be deployed?',
57
                'unstable'
58
            )
59
            ->addOption(
60
                'no-logout',
61
                null,
62
                InputOption::VALUE_NONE,
63
                'Will keep the CF session open after deployment. '.
64
                '<fg=yellow;options=bold>Keep in mind to close it by yourself!</fg=yellow;options=bold>'
65
            );
66
    }
67
68
    /**
69
     * Executes the current command.

src/Command/CloudFoundry/RunCommand.php 1 location

@@ 43-71 (lines=29) @@
40
     *
41
     * @return void
42
     */
43
    protected function configure()
44
    {
45
        $this
46
            ->setName('graviton:deployment:cf:run')
47
            ->setDescription('Run a command as on a Cloud Foundry instance')
48
            ->addArgument(
49
                'applicationName',
50
                InputArgument::REQUIRED,
51
                'Which application shall be deployed?'
52
            )
53
            ->addArgument(
54
                'cmd',
55
                InputArgument::REQUIRED,
56
                'Shell command passed as a string e.g. "php app/console doctrine:mongodb:fixtures:load unstable"'
57
            )
58
            ->addArgument(
59
                'versionName',
60
                InputArgument::OPTIONAL,
61
                'Which application shall be deployed?',
62
                'unstable'
63
            )
64
            ->addOption(
65
                'no-logout',
66
                null,
67
                InputOption::VALUE_NONE,
68
                'Will keep the CF session open after deployment. ' .
69
                '<fg=yellow;options=bold>Keep in mind to close it by yourself!</fg=yellow;options=bold>'
70
            );
71
    }
72
73
    /**
74
     * Executes the current command.