コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: Save.php プロジェクト: DoveID/Magento2-Deployer
 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>'));
 }
コード例 #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);
 }
コード例 #4
0
ファイル: Save.php プロジェクト: DoveID/Magento2-Deployer
 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>')));
 }
コード例 #5
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::SETUP_UPGRADE;
     $output = $this->_callBlockingShellCommand($command);
     $this->_jsonAnswer($php . ' ' . $magento . ' ' . Magento::SETUP_UPGRADE, $output);
     header('Content-Type: application/json');
 }
コード例 #6
0
ファイル: Process.php プロジェクト: DoveID/Magento2-Deployer
 public function getOrderInputValue()
 {
     return System::getSetting($this->getData('config') . '_order');
 }
コード例 #7
0
ファイル: Deployer.php プロジェクト: DoveID/Magento2-Deployer
 public function getProcessStatus($key)
 {
     return System::getSetting($key . '_status');
 }
コード例 #8
0
<?php

require_once 'Model' . DIRECTORY_SEPARATOR . 'System.php';
require_once 'Model' . DIRECTORY_SEPARATOR . 'Autoloader.php';
\Youama\Magento2Deployer\Model\System::start(__DIR__);
コード例 #9
0
ファイル: Setting.php プロジェクト: DoveID/Magento2-Deployer
 public function getInputValue()
 {
     return System::getSetting($this->getData('config'));
 }
コード例 #10
0
 public function render()
 {
     include System::getViewDir() . $this->_view . '.phtml';
 }