@@ -16,8 +16,7 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | protected $_projectPath; |
| 18 | 18 | |
| 19 | - protected function configure() |
|
| 20 | - { |
|
| 19 | + protected function configure() { |
|
| 21 | 20 | $this->_projectPath = getcwd(); |
| 22 | 21 | |
| 23 | 22 | $this->setName("vm:destroy"); |
@@ -29,8 +28,7 @@ discard block |
||
| 29 | 28 | * @param OutputInterface $output |
| 30 | 29 | * @return ProcessCommand |
| 31 | 30 | */ |
| 32 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 33 | - { |
|
| 31 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 34 | 32 | $output->writeln('<info>Destroying your development environment</info>'); |
| 35 | 33 | return new ProcessCommand('vagrant destroy --force', $this->_projectPath, $output); |
| 36 | 34 | } |
@@ -13,8 +13,7 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | protected $_projectPath; |
| 15 | 15 | |
| 16 | - protected function configure() |
|
| 17 | - { |
|
| 16 | + protected function configure() { |
|
| 18 | 17 | $this->_projectPath = getcwd(); |
| 19 | 18 | |
| 20 | 19 | $this->setName("vm:status"); |
@@ -26,8 +25,7 @@ discard block |
||
| 26 | 25 | * @param OutputInterface $output |
| 27 | 26 | * @return ProcessCommand |
| 28 | 27 | */ |
| 29 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 30 | - { |
|
| 28 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 31 | 29 | $output->writeln('<info>Getting machine status</info>'); |
| 32 | 30 | return new ProcessCommand('vagrant status', $this->_projectPath, $output); |
| 33 | 31 | } |
@@ -13,8 +13,7 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | protected $_projectPath; |
| 15 | 15 | |
| 16 | - protected function configure() |
|
| 17 | - { |
|
| 16 | + protected function configure() { |
|
| 18 | 17 | $this->_projectPath = getcwd(); |
| 19 | 18 | |
| 20 | 19 | $this->setName("vm:resume"); |
@@ -26,8 +25,7 @@ discard block |
||
| 26 | 25 | * @param OutputInterface $output |
| 27 | 26 | * @return ProcessCommand |
| 28 | 27 | */ |
| 29 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 30 | - { |
|
| 28 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 31 | 29 | $output->writeln('<info>Resuming your development environment</info>'); |
| 32 | 30 | return new ProcessCommand('vagrant resume', $this->_projectPath, $output); |
| 33 | 31 | } |
@@ -13,8 +13,7 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | protected $_projectPath; |
| 15 | 15 | |
| 16 | - protected function configure() |
|
| 17 | - { |
|
| 16 | + protected function configure() { |
|
| 18 | 17 | $this->_projectPath = getcwd(); |
| 19 | 18 | |
| 20 | 19 | $this->setName("vm:suspend"); |
@@ -26,8 +25,7 @@ discard block |
||
| 26 | 25 | * @param OutputInterface $output |
| 27 | 26 | * @return ProcessCommand |
| 28 | 27 | */ |
| 29 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 30 | - { |
|
| 28 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 31 | 29 | $output->writeln('<info>Suspending your development machine</info>'); |
| 32 | 30 | return new ProcessCommand('vagrant suspend', $this->_projectPath, $output); |
| 33 | 31 | } |
@@ -13,8 +13,7 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | protected $_projectPath; |
| 15 | 15 | |
| 16 | - protected function configure() |
|
| 17 | - { |
|
| 16 | + protected function configure() { |
|
| 18 | 17 | $this->_projectPath = getcwd(); |
| 19 | 18 | |
| 20 | 19 | $this->setName("vm:up"); |
@@ -26,8 +25,7 @@ discard block |
||
| 26 | 25 | * @param OutputInterface $output |
| 27 | 26 | * @return ProcessCommand |
| 28 | 27 | */ |
| 29 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 30 | - { |
|
| 28 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 31 | 29 | $output->writeln('<info>Spinning up your development machine</info>'); |
| 32 | 30 | return new ProcessCommand('vagrant up', $this->_projectPath, $output); |
| 33 | 31 | } |
@@ -13,8 +13,7 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | protected $_projectPath; |
| 15 | 15 | |
| 16 | - protected function configure() |
|
| 17 | - { |
|
| 16 | + protected function configure() { |
|
| 18 | 17 | $this->_projectPath = getcwd(); |
| 19 | 18 | |
| 20 | 19 | $this->setName("vm:halt"); |
@@ -26,8 +25,7 @@ discard block |
||
| 26 | 25 | * @param OutputInterface $output |
| 27 | 26 | * @return ProcessCommand |
| 28 | 27 | */ |
| 29 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 30 | - { |
|
| 28 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 31 | 29 | $output->writeln('<info>Halting your development environment</info>'); |
| 32 | 30 | return new ProcessCommand('vagrant halt', $this->_projectPath, $output); |
| 33 | 31 | } |
@@ -12,8 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | protected $_projectPath; |
| 14 | 14 | |
| 15 | - protected function configure() |
|
| 16 | - { |
|
| 15 | + protected function configure() { |
|
| 17 | 16 | $this->_projectPath = getcwd(); |
| 18 | 17 | |
| 19 | 18 | $this->setName("vm:ssh"); |
@@ -25,8 +24,7 @@ discard block |
||
| 25 | 24 | * @param OutputInterface $output |
| 26 | 25 | * @return bool |
| 27 | 26 | */ |
| 28 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 29 | - { |
|
| 27 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 30 | 28 | passthru('vagrant ssh'); |
| 31 | 29 | return true; |
| 32 | 30 | } |
@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | { |
| 15 | 15 | protected $_projectPath; |
| 16 | 16 | |
| 17 | - protected function configure() |
|
| 18 | - { |
|
| 17 | + protected function configure() { |
|
| 19 | 18 | $this->_projectPath = getcwd(); |
| 20 | 19 | |
| 21 | 20 | $this->setName("vm:run"); |
@@ -28,8 +27,7 @@ discard block |
||
| 28 | 27 | * @param OutputInterface $output |
| 29 | 28 | * @return ProcessCommand |
| 30 | 29 | */ |
| 31 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 32 | - { |
|
| 30 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 33 | 31 | $command = $input->getArgument('ssh-command'); |
| 34 | 32 | $output->writeln('<info>Running "'.$command.'" on Magestead</info>'); |
| 35 | 33 | |
@@ -16,8 +16,7 @@ discard block |
||
| 16 | 16 | protected $_config; |
| 17 | 17 | protected $_projectPath; |
| 18 | 18 | |
| 19 | - protected function configure() |
|
| 20 | - { |
|
| 19 | + protected function configure() { |
|
| 21 | 20 | $this->_projectPath = getcwd(); |
| 22 | 21 | $this->setName("index:mode:set"); |
| 23 | 22 | $this->setDescription("Set index mode type"); |
@@ -29,8 +28,7 @@ discard block |
||
| 29 | 28 | * @param OutputInterface $output |
| 30 | 29 | * @return ProcessCommand |
| 31 | 30 | */ |
| 32 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 33 | - { |
|
| 31 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 34 | 32 | $mode = $input->getArgument('mode'); |
| 35 | 33 | $command = $this->getCommand(new Config($output), $mode); |
| 36 | 34 | if ($command) { |
@@ -47,8 +45,7 @@ discard block |
||
| 47 | 45 | * @param $mode |
| 48 | 46 | * @return bool|string |
| 49 | 47 | */ |
| 50 | - protected function getCommand(Config $config, $mode) |
|
| 51 | - { |
|
| 48 | + protected function getCommand(Config $config, $mode) { |
|
| 52 | 49 | $type = $config->type; |
| 53 | 50 | switch ($type) { |
| 54 | 51 | case 'magento2': |