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

SshCommand::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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
}