StepLogin::getCommand()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 12
ccs 9
cts 9
cp 1
rs 9.4285
cc 1
eloc 9
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Step to log in to a Cloud Foundry instance.
4
 */
5
6
namespace Graviton\Deployment\Steps\CloudFoundry;
7
8
/**
9
 * @author   List of contributors <https://github.com/libgraviton/deploy-scripts/graphs/contributors>
10
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
11
 * @link     http://swisscom.ch
12
 */
13
final class StepLogin extends AbstractStep
14
{
15
    /**
16
     * returns the command
17
     *
18
     * @return array
19
     */
20 5
    public function getCommand()
21
    {
22
        return array(
23 5
            $this->configuration['cf_bin'],
24 5
            'login',
25 5
            '-u',  $this->configuration['cf_username'],
26 5
            '-p' , $this->configuration['cf_password'],
27 5
            '-o' , $this->configuration['cf_org'],
28 5
            '-s' , $this->configuration['cf_space'],
29 5
            '-a' , $this->configuration['cf_api_url']
30 5
        );
31
    }
32
}
33