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;
 }
 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');
 }
Exemple #4
0
 public function getOrderInputValue()
 {
     return System::getSetting($this->getData('config') . '_order');
 }
 public function getProcessStatus($key)
 {
     return System::getSetting($key . '_status');
 }
Exemple #6
0
 public function getInputValue()
 {
     return System::getSetting($this->getData('config'));
 }