@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | protected function configure() |
20 | 20 | { |
21 | - $this->_projectPath = getcwd(); |
|
21 | + $this->_projectPath=getcwd(); |
|
22 | 22 | $this->setName("index:reindex"); |
23 | 23 | $this->setDescription("Reindex data"); |
24 | 24 | $this->addArgument('index', InputArgument::OPTIONAL, '[indexer]'); |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | protected function execute(InputInterface $input, OutputInterface $output) |
33 | 33 | { |
34 | 34 | $output->writeln('<info>Reindexing data</info>'); |
35 | - $index = $input->getArgument('index'); |
|
35 | + $index=$input->getArgument('index'); |
|
36 | 36 | |
37 | - $command = $this->getCommand(new Config($output), $index); |
|
38 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
37 | + $command=$this->getCommand(new Config($output), $index); |
|
38 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
39 | 39 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
40 | 40 | } |
41 | 41 | |
@@ -46,10 +46,10 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function getCommand(Config $config, $index) |
48 | 48 | { |
49 | - $type = $config->type; |
|
49 | + $type=$config->type; |
|
50 | 50 | switch ($type) { |
51 | 51 | case 'magento': |
52 | - $index = (!is_null($index)) ? ' '.$index : ':all'; |
|
52 | + $index=(!is_null($index)) ? ' '.$index : ':all'; |
|
53 | 53 | return "cd /var/www/public;../bin/n98-magerun.phar index:reindex$index"; |
54 | 54 | break; |
55 | 55 | case 'magento2': |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("index:info"); |
22 | 22 | $this->setDescription("Show available indexes"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Getting index information</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar index:list"; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | protected function configure() |
20 | 20 | { |
21 | - $this->_projectPath = getcwd(); |
|
21 | + $this->_projectPath=getcwd(); |
|
22 | 22 | $this->setName("index:mode:set"); |
23 | 23 | $this->setDescription("Set index mode type"); |
24 | 24 | $this->addArgument('mode', InputArgument::REQUIRED, '{realtime|schedule} [indexer]'); |
@@ -31,11 +31,11 @@ discard block |
||
31 | 31 | */ |
32 | 32 | protected function execute(InputInterface $input, OutputInterface $output) |
33 | 33 | { |
34 | - $mode = $input->getArgument('mode'); |
|
35 | - $command = $this->getCommand(new Config($output), $mode); |
|
34 | + $mode=$input->getArgument('mode'); |
|
35 | + $command=$this->getCommand(new Config($output), $mode); |
|
36 | 36 | if ($command) { |
37 | 37 | $output->writeln('<info>Setting index mode</info>'); |
38 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
38 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
39 | 39 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
40 | 40 | } |
41 | 41 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | protected function getCommand(Config $config, $mode) |
51 | 51 | { |
52 | - $type = $config->type; |
|
52 | + $type=$config->type; |
|
53 | 53 | switch ($type) { |
54 | 54 | case 'magento2': |
55 | 55 | return "cd /var/www/public;bin/magento indexer:set-mode $mode"; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("index:status"); |
22 | 22 | $this->setDescription("Show status of index"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Getting index status</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | // todo add magerun commands |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | protected function configure() |
20 | 20 | { |
21 | - $this->_projectPath = getcwd(); |
|
21 | + $this->_projectPath=getcwd(); |
|
22 | 22 | $this->setName("index:mode:show"); |
23 | 23 | $this->setDescription("Show index mode"); |
24 | 24 | $this->addArgument('index', InputArgument::OPTIONAL, '[indexer]'); |
@@ -31,12 +31,12 @@ discard block |
||
31 | 31 | */ |
32 | 32 | protected function execute(InputInterface $input, OutputInterface $output) |
33 | 33 | { |
34 | - $index = $input->getArgument('index'); |
|
34 | + $index=$input->getArgument('index'); |
|
35 | 35 | |
36 | - $command = $this->getCommand(new Config($output), $index); |
|
36 | + $command=$this->getCommand(new Config($output), $index); |
|
37 | 37 | if ($command) { |
38 | 38 | $output->writeln('<info>Getting index mode</info>'); |
39 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
39 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
40 | 40 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
41 | 41 | } |
42 | 42 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | protected function getCommand(Config $config, $index) |
52 | 52 | { |
53 | - $type = $config->type; |
|
53 | + $type=$config->type; |
|
54 | 54 | switch ($type) { |
55 | 55 | case 'magento2': |
56 | 56 | return "cd /var/www/public;bin/magento indexer:show-mode $index"; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:flush"); |
22 | 22 | $this->setDescription("Flushes cache storage used by cache types"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Flushing cache storage</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:flush"; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:clean"); |
22 | 22 | $this->setDescription("Cleans cache types"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Cleaning all cache types</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:clean"; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:disable"); |
22 | 22 | $this->setDescription("Disable cache types"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Disabling all cache types</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:disable"; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:status"); |
22 | 22 | $this->setDescription("Checks cache status"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Checking cache status</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:list"; |