Browse Source

updated sample config file at end of script

1.0
Matt Lowe 11 years ago
parent
commit
f864fa7b8e
  1. 19
      Mage/Task/BuiltIn/Ioncube/EncryptTask.php

19
Mage/Task/BuiltIn/Ioncube/EncryptTask.php

@ -456,14 +456,12 @@ class EncryptTask extends AbstractTask {
if (isset ( $this->mageConfig ['keeptemp'] )) {
return;
}
Console::log('Deleting tempory files :', 0);
$ret1 = $this->runCommandLocal ( 'rm -Rf ' . $this->ionSource, $out1 );
$ret2 = $this->runCommandLocal ( 'rm ' . $this->projectFile, $out2 );
Console::log('Deleting tempory files :', 1);
$ret1 = Console::executeCommand ( 'rm -Rf ' . $this->ionSource, $out1 );
$ret2 = Console::executeCommand ( 'rm ' . $this->projectFile, $out2 );
if ($ret1 && $ret2) {
Console::log('OK',0);
return;
}
Console::log('Failed!', 1);
throw new ErrorWithMessageException ( 'Error deleting temp files :' . $out1 . ' : ' . $out2, 40 );
}
@ -475,7 +473,7 @@ class EncryptTask extends AbstractTask {
*/
private function runIonCube() {
$cli = $this->encoder . ' --project-file ' . $this->projectFile . ' ' . $this->ionSource . DIRECTORY_SEPARATOR.'*';
$ret = $this->runCommandLocal ( $cli, $out );
$ret = Console::executeCommand ( $cli, $out );
return $ret;
}
@ -586,11 +584,11 @@ class EncryptTask extends AbstractTask {
*/
private function switchSrcToTmp() {
//echo "\nSwitching :" . $this->source . " -> To :" . $this->ionSource."\n";
$ret = $this->runCommandLocal ( 'mv ' . $this->source . ' ' . $this->ionSource, $out );
$ret = Console::executeCommand ( 'mv ' . $this->source . ' ' . $this->ionSource, $out );
if (! $ret) {
throw new ErrorWithMessageException ( 'Cant create tmp dir :' . $out, $ret );
}
$ret = $this->runCommandLocal ( 'mkdir -p ' . $this->source, $out );
$ret = Console::executeCommand ( 'mkdir -p ' . $this->source, $out );
if (! $ret) {
throw new ErrorWithMessageException ( 'Cant re-create dir :' . $out, $ret );
}
@ -821,6 +819,11 @@ tasks:
override: dyf
keeptemp:
encoder: ioncube_encoder54
checkencoding: true
checkignorepaths:
-/public/js/*
-/public/css/*
projfile: project.prj
project:
replace-target:

Loading…
Cancel
Save