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()
 {
     foreach ($_POST as $_key => $_value) {
         System::setSetting($_key, $_value, true);
     }
     $this->_jsonAnswer('<span>Saving deployment configuration<span>', array('<span>Configuration has been saved</span>'));
 }
Example #3
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);
 }
Example #4
0
 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');
 }
Example #6
0
 public function getOrderInputValue()
 {
     return System::getSetting($this->getData('config') . '_order');
 }
Example #7
0
 public function getProcessStatus($key)
 {
     return System::getSetting($key . '_status');
 }
Example #8
0
<?php

require_once 'Model' . DIRECTORY_SEPARATOR . 'System.php';
require_once 'Model' . DIRECTORY_SEPARATOR . 'Autoloader.php';
\Youama\Magento2Deployer\Model\System::start(__DIR__);
Example #9
0
 public function getInputValue()
 {
     return System::getSetting($this->getData('config'));
 }
Example #10
0
 public function render()
 {
     include System::getViewDir() . $this->_view . '.phtml';
 }