private function _createMediaLink()
 {
     // @TODO symbolic links
     $this->_input[] = $command = 'ln -s ' . escapeshellarg(System::getSetting(Settings::SETTING_MAGENTO_MEDIA) . DIRECTORY_SEPARATOR . 'media') . ' ' . escapeshellarg($this->_newReleaseDir . DIRECTORY_SEPARATOR);
     $output = $this->_callBlockingShellCommand($command);
     $this->_output[] = $output;
 }
Example #2
0
 public function execute()
 {
     $magento = System::getSetting(Settings::SETTING_MAGENTO_WEBROOT) . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'magento';
     $php = System::getSetting(Settings::SETTING_PHP_EXECUTION);
     $command = escapeshellarg($php) . ' ' . escapeshellarg($magento) . ' ' . Magento::CACHE_CLEAN;
     $output = $this->_callBlockingShellCommand($command);
     $this->_jsonAnswer($php . ' ' . $magento . ' ' . Magento::CACHE_CLEAN, $output);
 }
 public function execute()
 {
     $magento = System::getSetting(Settings::SETTING_MAGENTO_WEBROOT) . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'magento';
     $php = System::getSetting(Settings::SETTING_PHP_EXECUTION);
     $command = escapeshellarg($php) . ' ' . escapeshellarg($magento) . ' ' . Magento::SETUP_UPGRADE;
     $output = $this->_callBlockingShellCommand($command);
     $this->_jsonAnswer($php . ' ' . $magento . ' ' . Magento::SETUP_UPGRADE, $output);
     header('Content-Type: application/json');
 }
Example #4
0
 public function getOrderInputValue()
 {
     return System::getSetting($this->getData('config') . '_order');
 }
Example #5
0
 public function getProcessStatus($key)
 {
     return System::getSetting($key . '_status');
 }
Example #6
0
 public function getInputValue()
 {
     return System::getSetting($this->getData('config'));
 }