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

SshCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 7 1
A execute() 0 4 1
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
}