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() { foreach ($_POST as $_key => $_value) { System::setSetting($_key, $_value, true); } $this->_jsonAnswer('<span>Saving deployment configuration<span>', array('<span>Configuration has been saved</span>')); }
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() { foreach ($_POST as $_key => $_value) { System::setSetting($_key, $_value, true); } header('Content-Type: application/json'); echo json_encode(array('input' => '<span>Saving Settings<span>', 'output' => array('<span>Settings has been saved</span>'))); }
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'); }
public function getOrderInputValue() { return System::getSetting($this->getData('config') . '_order'); }
public function getProcessStatus($key) { return System::getSetting($key . '_status'); }
<?php require_once 'Model' . DIRECTORY_SEPARATOR . 'System.php'; require_once 'Model' . DIRECTORY_SEPARATOR . 'Autoloader.php'; \Youama\Magento2Deployer\Model\System::start(__DIR__);
public function getInputValue() { return System::getSetting($this->getData('config')); }
public function render() { include System::getViewDir() . $this->_view . '.phtml'; }