Completed
Push — feature/add-cli-installers ( 115549...a5e20d )
by Steven
13:21
created

SshCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
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
class SshCommand extends Command
8
{
9
    protected $_projectPath;
10
11
    protected function configure()
12
    {
13
        $this->_projectPath = getcwd();
14
15
        $this->setName("vm:ssh");
16
        $this->setDescription("Login to your development machine with SSH");
17
    }
18
19
    protected function execute(InputInterface $input, OutputInterface $output)
20
    {
21
        passthru(' vagrant ssh');
22
    }
23
}