SshCommand::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php namespace Magestead\Command\VM;
2
3
use Symfony\Component\Console\Command\Command;
4
use Symfony\Component\Console\Input\InputInterface;
5
use Symfony\Component\Console\Output\OutputInterface;
6
7
/**
8
 * Class SshCommand
9
 * @package Magestead\Command\VM
10
 */
11
class SshCommand extends Command
12
{
13
    protected $_projectPath;
14
15
    protected function configure()
16
    {
17
        $this->_projectPath = getcwd();
18
19
        $this->setName("vm:ssh");
20
        $this->setDescription("Login to your development machine with SSH");
21
    }
22
23
    /**
24
     * @param InputInterface $input
25
     * @param OutputInterface $output
26
     * @return bool
27
     */
28
    protected function execute(InputInterface $input, OutputInterface $output)
29
    {
30
        passthru('vagrant ssh');
31
        return true;
32
    }
33
}
34